Class RaiseRemainsDef

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

Deterministic closest-then-body-Id reservation followed by delayed, atomic consumption.

public sealed class RaiseRemainsDef : IAbilityAction
Inheritance
RaiseRemainsDef
Implements
Inherited Members

Constructors

RaiseRemainsDef(string, string, float, bool, int, float, float, RemainsFaction, ulong, ulong, DamageFlags, float, float, int, int, float, bool, bool)

Creates a body-consumption action; a timeout of zero chooses CastDelay + one second.

public RaiseRemainsDef(string id, string templateId, float range, bool hostile = true, int maxCount = 1, float castDelay = 0, float riseDuration = 0, RemainsFaction faction = RemainsFaction.Enemy, ulong kindMask = 18446744073709551615, ulong requiredTags = 0, DamageFlags forbiddenFatalFlags = DamageFlags.SuppressDeathSummons, float minimumAge = 0, float maximumAge = 3.4028235E+38, int populationLimit = 0, int chainBudget = 1, float reservationTimeout = 0, bool ignoreDamageWhileRising = false, bool excludeWhileRising = false)

Parameters

id string
templateId string
range float
hostile bool
maxCount int
castDelay float
riseDuration float
faction RemainsFaction
kindMask ulong
requiredTags ulong
forbiddenFatalFlags DamageFlags
minimumAge float
maximumAge float
populationLimit int
chainBudget int
reservationTimeout float
ignoreDamageWhileRising bool
excludeWhileRising bool

Properties

CastDelay

Time between reservation and consumption.

public float CastDelay { get; }

Property Value

float

ChainBudget

Shared successor budget used when the body has no prior budget.

public int ChainBudget { get; }

Property Value

int

ExcludeWhileRising

Attack-acquisition exclusion during result preparation.

public bool ExcludeWhileRising { get; }

Property Value

bool

Faction

Allowed body faction.

public RemainsFaction Faction { get; }

Property Value

RemainsFaction

ForbiddenFatalFlags

Excluded fatal-damage control flags.

public DamageFlags ForbiddenFatalFlags { get; }

Property Value

DamageFlags

Hostile

Result faction; hostile results require a body with path state.

public bool Hostile { get; }

Property Value

bool

Id

Mechanism/event key.

public string Id { get; }

Property Value

string

IgnoreDamageWhileRising

Damage immunity during result preparation.

public bool IgnoreDamageWhileRising { get; }

Property Value

bool

KindMask

Bit per EntityKind in an eligible body.

public ulong KindMask { get; }

Property Value

ulong

MaxCount

Maximum bodies per activation.

public int MaxCount { get; }

Property Value

int

MaximumAge

Maximum body age, inclusive and also bounded by body expiry.

public float MaximumAge { get; }

Property Value

float

MinimumAge

Minimum body age, inclusive.

public float MinimumAge { get; }

Property Value

float

PopulationLimit

Owner/template population cap including reservations; zero disables this cap.

public int PopulationLimit { get; }

Property Value

int

Range

Elliptical body acquisition radius around the caster.

public float Range { get; }

Property Value

float

RequiredTags

Required body trait bits.

public ulong RequiredTags { get; }

Property Value

ulong

ReservationTimeout

Exclusive reservation timeout; must exceed CastDelay.

public float ReservationTimeout { get; }

Property Value

float

RiseDuration

Preparation of the spawned result.

public float RiseDuration { get; }

Property Value

float

TemplateId

New template; original body stats are not copied.

public string TemplateId { get; }

Property Value

string