IStateMachineComponent
Namespace: Bang.StateMachines
Assembly: Bang.dll
public abstract IStateMachineComponent : IComponent
See StateMachine for more details. This is the component implementation.
Implements: IComponent
⭐ Properties
State
public abstract virtual string State { get; }
Name of the state machine. This is mostly used to debug.
Returns
string
⭐ Methods
Tick(float)
public abstract bool Tick(float dt)
Tick a yield operation in the state machine. The next tick will be called according to the returned WaitKind.
Parameters
dt
float
Returns
bool
Initialize(World, Entity)
public abstract void Initialize(World world, Entity e)
Initialize the state machine with the world knowledge. Called before any tick.
Parameters
world
World
e
Entity
OnDestroyed()
public abstract void OnDestroyed()
Called right before the component gets destroyed.
⚡