Class EntityRulesDef

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

Optional behavior slots; generic actions also extend enemy behavior without named unit subclasses.

public sealed class EntityRulesDef
Inheritance
EntityRulesDef
Inherited Members

Constructors

EntityRulesDef(RecoveryDef, float, SummonDef, AbilityRankDef, TargetTraitsDef)

Creates behavior extensions.

public EntityRulesDef(RecoveryDef recovery = null, float meleeEvasion = 0, SummonDef deathSummon = null, AbilityRankDef behavior = null, TargetTraitsDef traits = null)

Parameters

recovery RecoveryDef
meleeEvasion float
deathSummon SummonDef
behavior AbilityRankDef
traits TargetTraitsDef

Properties

Behavior

Always-active generic behavior actions.

public AbilityRankDef Behavior { get; }

Property Value

AbilityRankDef

DeathSummon

Optional death emission, including delayed enemy spawns.

public SummonDef DeathSummon { get; }

Property Value

SummonDef

MeleeEvasion

Probability of avoiding a melee strike only.

public float MeleeEvasion { get; }

Property Value

float

Recovery

Optional health recovery.

public RecoveryDef Recovery { get; }

Property Value

RecoveryDef

Reflection

Optional native one-bounce reflection on the recipient.

public ReflectionDef Reflection { get; }

Property Value

ReflectionDef

Traits

Eligibility and immunity data.

public TargetTraitsDef Traits { get; }

Property Value

TargetTraitsDef

Methods

WithReflection(ReflectionDef)

Copies all behavior and trait settings and adds reflection.

public EntityRulesDef WithReflection(ReflectionDef reflection)

Parameters

reflection ReflectionDef

Returns

EntityRulesDef