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

BasicDamageData

enabled

Whether the region pulses.

public bool enabled

Field Value

bool

healing

Health restored to each occupant per pulse.

public HealingData healing

Field Value

HealingData

id

Event key (also selects the pulse colour in the view); blank uses "pulse".

public string id

Field Value

string

targets

Extra occupant eligibility.

public MechanicTargetData targets

Field Value

MechanicTargetData

useDamage

Whether damage hits occupants.

public bool useDamage

Field Value

bool

useHealing

Whether healing restores occupants.

public bool useHealing

Field Value

bool

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

string

IsValid

Whether the data bakes to a pulse.

public bool IsValid { get; }

Property Value

bool

Methods

ToDef()

Bakes the pulse, or null when disabled or empty.

public AreaPulseDef ToDef()

Returns

AreaPulseDef