Class RaiseRemainsDef
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
idstringtemplateIdstringrangefloathostileboolmaxCountintcastDelayfloatriseDurationfloatfactionRemainsFactionkindMaskulongrequiredTagsulongforbiddenFatalFlagsDamageFlagsminimumAgefloatmaximumAgefloatpopulationLimitintchainBudgetintreservationTimeoutfloatignoreDamageWhileRisingboolexcludeWhileRisingbool
Properties
CastDelay
Time between reservation and consumption.
public float CastDelay { get; }
Property Value
ChainBudget
Shared successor budget used when the body has no prior budget.
public int ChainBudget { get; }
Property Value
ExcludeWhileRising
Attack-acquisition exclusion during result preparation.
public bool ExcludeWhileRising { get; }
Property Value
Faction
Allowed body faction.
public RemainsFaction Faction { get; }
Property Value
ForbiddenFatalFlags
Excluded fatal-damage control flags.
public DamageFlags ForbiddenFatalFlags { get; }
Property Value
Hostile
Result faction; hostile results require a body with path state.
public bool Hostile { get; }
Property Value
Id
Mechanism/event key.
public string Id { get; }
Property Value
IgnoreDamageWhileRising
Damage immunity during result preparation.
public bool IgnoreDamageWhileRising { get; }
Property Value
KindMask
Bit per EntityKind in an eligible body.
public ulong KindMask { get; }
Property Value
MaxCount
Maximum bodies per activation.
public int MaxCount { get; }
Property Value
MaximumAge
Maximum body age, inclusive and also bounded by body expiry.
public float MaximumAge { get; }
Property Value
MinimumAge
Minimum body age, inclusive.
public float MinimumAge { get; }
Property Value
PopulationLimit
Owner/template population cap including reservations; zero disables this cap.
public int PopulationLimit { get; }
Property Value
Range
Elliptical body acquisition radius around the caster.
public float Range { get; }
Property Value
RequiredTags
Required body trait bits.
public ulong RequiredTags { get; }
Property Value
ReservationTimeout
Exclusive reservation timeout; must exceed CastDelay.
public float ReservationTimeout { get; }
Property Value
RiseDuration
Preparation of the spawned result.
public float RiseDuration { get; }
Property Value
TemplateId
New template; original body stats are not copied.
public string TemplateId { get; }