Class AreaPulseData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
A direct damage and/or healing pulse on every occupant of a region, baked into AreaPulseDef. A region whose status effect is empty becomes a pulse-only region.
public sealed class AreaPulseData
- Inheritance
-
AreaPulseData
- Inherited Members
Constructors
AreaPulseData()
public AreaPulseData()
Fields
color
Ring colour drawn on each pulse.
public Color color
Field Value
- Color
damage
Single-target hit on each occupant (the radius is ignored; the region is the area).
public BasicDamageData damage
Field Value
enabled
Whether the region pulses.
public bool enabled
Field Value
healing
Health restored to each occupant per pulse.
public HealingData healing
Field Value
id
Event key (also selects the pulse colour in the view); blank uses "pulse".
public string id
Field Value
targets
Extra occupant eligibility.
public MechanicTargetData targets
Field Value
useDamage
Whether damage hits occupants.
public bool useDamage
Field Value
useHealing
Whether healing restores occupants.
public bool useHealing
Field Value
vfx
Optional pooled VFX spawned at the region centre on each pulse.
public GameObject vfx
Field Value
- GameObject
Properties
Id
The resolved event key.
public string Id { get; }
Property Value
IsValid
Whether the data bakes to a pulse.
public bool IsValid { get; }
Property Value
Methods
ToDef()
Bakes the pulse, or null when disabled or empty.
public AreaPulseDef ToDef()