Class MechanicTargetDef

Namespace
TDMaker.Core.Defs
Assembly
TDMaker.Core.dll

Additional eligibility for mechanic actions; never replaces lifecycle or faction checks.

public sealed class MechanicTargetDef
Inheritance
MechanicTargetDef
Inherited Members

Constructors

MechanicTargetDef(ulong, ulong, bool, float, float)

Creates a reusable filter, including execute eligibility.

public MechanicTargetDef(ulong requiredTags = 0, ulong rejectedTags = 0, bool allowHeroes = true, float maximumHealthRatio = 1, float maximumHealth = 0)

Parameters

requiredTags ulong
rejectedTags ulong
allowHeroes bool
maximumHealthRatio float
maximumHealth float

Properties

AllowHeroes

Allows independent heroes as recipients.

public bool AllowHeroes { get; }

Property Value

bool

MaximumHealth

Optional absolute current-health ceiling; zero disables it.

public float MaximumHealth { get; }

Property Value

float

MaximumHealthRatio

Maximum current/maximum health ratio, inclusive.

public float MaximumHealthRatio { get; }

Property Value

float

RejectedTags

None of these author-defined target tags may be present.

public ulong RejectedTags { get; }

Property Value

ulong

RequiredTags

All these author-defined target tags must be present.

public ulong RequiredTags { get; }

Property Value

ulong