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

AreaEffectData

chance

Probability per eligible hit; one roll gates every operation.

[Range(0, 1)]
public float chance

Field Value

float

destination

Exact path destination for useTransfer.

public PathDestinationData destination

Field Value

PathDestinationData

displacement

Signed path distance: negative pushes back toward the entry, positive pulls toward the exit.

public float displacement

Field Value

float

enabled

Whether the payload is used.

public bool enabled

Field Value

bool

secondaryDamage

Independent extra hit centred on the victim (give it a radius for a blast).

public BasicDamageData secondaryDamage

Field Value

BasicDamageData

targets

Extra victim eligibility.

public MechanicTargetData targets

Field Value

MechanicTargetData

triggerOnZeroDamage

Also triggers on hits that removed no health (control-only impacts).

public bool triggerOnZeroDamage

Field Value

bool

useDisplacement

Whether the victim is moved along its path.

public bool useDisplacement

Field Value

bool

useSecondaryDamage

Whether secondaryDamage is applied.

public bool useSecondaryDamage

Field Value

bool

useTransfer

Whether a surviving victim is moved to destination (after any displacement).

public bool useTransfer

Field Value

bool

Methods

ToDef()

Bakes the payload, or null when disabled or empty.

public ImpactPayloadDef ToDef()

Returns

ImpactPayloadDef