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
Movements
public readonly BehaviourRegistry<IEnemyMovement> Movements
Field Value
Pickups
public readonly BehaviourRegistry<IPickupBehaviour> Pickups
Field Value
Statuses
public readonly BehaviourRegistry<IStatusBehaviour> Statuses
Field Value
Weapons
public readonly BehaviourRegistry<IWeaponBehaviour> Weapons
Field Value
Methods
CreateDefault()
public static SimBehaviours CreateDefault()
Returns
IdOf(MovementDef)
public static string IdOf(MovementDef def)
Parameters
defMovementDef
Returns
IdOf(SpecialAttackDef)
Empty when the enemy has no special attack.
public static string IdOf(SpecialAttackDef def)
Parameters
defSpecialAttackDef
Returns
IdOf(StatusEffectDef)
public static string IdOf(StatusEffectDef def)
Parameters
defStatusEffectDef
Returns
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
defWeaponDef