Class ImpactPayloadData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
Extra work after a resolved hit, baked into ImpactPayloadDef: a secondary blast, a residual region (which may be pulse-only) and/or a path displacement (negative distance = knockback toward the entry).
public sealed class ImpactPayloadData
- Inheritance
-
ImpactPayloadData
- Inherited Members
Constructors
ImpactPayloadData()
public ImpactPayloadData()
Fields
area
Residual region left at the impact point (attached effect and/or pulse).
public AreaEffectData area
Field Value
chance
Probability per eligible hit; one roll gates every operation.
[Range(0, 1)]
public float chance
Field Value
destination
Exact path destination for useTransfer.
public PathDestinationData destination
Field Value
displacement
Signed path distance: negative pushes back toward the entry, positive pulls toward the exit.
public float displacement
Field Value
enabled
Whether the payload is used.
public bool enabled
Field Value
secondaryDamage
Independent extra hit centred on the victim (give it a radius for a blast).
public BasicDamageData secondaryDamage
Field Value
targets
Extra victim eligibility.
public MechanicTargetData targets
Field Value
triggerOnZeroDamage
Also triggers on hits that removed no health (control-only impacts).
public bool triggerOnZeroDamage
Field Value
useDisplacement
Whether the victim is moved along its path.
public bool useDisplacement
Field Value
useSecondaryDamage
Whether secondaryDamage is applied.
public bool useSecondaryDamage
Field Value
useTransfer
Whether a surviving victim is moved to destination (after any displacement).
public bool useTransfer
Field Value
Methods
ToDef()
Bakes the payload, or null when disabled or empty.
public ImpactPayloadDef ToDef()