Class SimBehaviours

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

The behaviour registries of a simulation (Behaviours). Each built-in system folder fills its registry through a partial method, so CreateDefault() has every built-in behaviour.

public sealed class SimBehaviours
Inheritance
SimBehaviours
Inherited Members

Constructors

SimBehaviours()

public SimBehaviours()

Fields

Attacks

public readonly BehaviourRegistry<IEnemyAttack> Attacks

Field Value

BehaviourRegistry<IEnemyAttack>

Movements

public readonly BehaviourRegistry<IEnemyMovement> Movements

Field Value

BehaviourRegistry<IEnemyMovement>

Pickups

public readonly BehaviourRegistry<IPickupBehaviour> Pickups

Field Value

BehaviourRegistry<IPickupBehaviour>

Statuses

public readonly BehaviourRegistry<IStatusBehaviour> Statuses

Field Value

BehaviourRegistry<IStatusBehaviour>

Weapons

public readonly BehaviourRegistry<IWeaponBehaviour> Weapons

Field Value

BehaviourRegistry<IWeaponBehaviour>

Methods

CreateDefault()

public static SimBehaviours CreateDefault()

Returns

SimBehaviours

IdOf(MovementDef)

public static string IdOf(MovementDef def)

Parameters

def MovementDef

Returns

string

IdOf(SpecialAttackDef)

Empty when the enemy has no special attack.

public static string IdOf(SpecialAttackDef def)

Parameters

def SpecialAttackDef

Returns

string

IdOf(StatusEffectDef)

public static string IdOf(StatusEffectDef def)

Parameters

def StatusEffectDef

Returns

string

IdOf(WeaponDef)

The behaviour id a weapon uses: its Behaviour id, or the built-in id of its kind.

public static string IdOf(WeaponDef def)

Parameters

def WeaponDef

Returns

string