Class EnemyDef
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
An enemy or neutral object (e.g. a destructible crate).
public sealed class EnemyDef
- Inheritance
-
EnemyDef
- Inherited Members
Constructors
EnemyDef()
public EnemyDef()
Fields
AlwaysDropHeal
public bool AlwaysDropHeal
Field Value
Attack
public SpecialAttackDef Attack
Field Value
BodyRadius
Body radius for arena clamping and contact. ≤ 0 → DefaultBodyRadius.
public float BodyRadius
Field Value
CanDropHeal
public bool CanDropHeal
Field Value
ContactDamage
public Scaled ContactDamage
Field Value
DeathSpawn
public DeathSpawnDef DeathSpawn
Field Value
Health
public Scaled Health
Field Value
HitRadius
Radius weapons hit. ≤ 0 → body radius.
public float HitRadius
Field Value
Id
public string Id
Field Value
IsBoss
Bosses get phase changes, boss events and the boss health bar.
public bool IsBoss
Field Value
KnockbackResistance
0 = full knockback, 1 = immune.
public float KnockbackResistance
Field Value
Movement
public MovementDef Movement
Field Value
Phases
Boss phases in order. Empty = Movement/Attack above for the whole fight.
public List<BossPhaseDef> Phases
Field Value
Speed
public float Speed
Field Value
SpeedJitter
± jitter on speed, fixed at spawn.
public float SpeedJitter
Field Value
StatusImmunities
Statuses this enemy ignores.
public List<StatusKind> StatusImmunities
Field Value
StatusImmunityIds
Statuses this enemy ignores, by behaviour id (accepts custom and built-in status ids).
public List<string> StatusImmunityIds
Field Value
Support
public SupportDef Support
Field Value
Value
Currency dropped and experience given on death (non-neutral only).
public int Value