Class StateController
- Namespace
- Exiled.API.Features.Core.StateMachine
- Assembly
- Exiled.API.dll
The base controller which handles actors using in-context states.
public abstract class StateController : EActor, IEntity, IWorldSpace, IPosition, IRotation- Inheritance
- 
      
      
      
      
      StateController
- Implements
- Inherited Members
- Extension Methods
Properties
BeginStateMulticastDispatcher
Gets or sets the TDynamicEventDispatcher<T> which handles all the delegates fired when entering a new state.
public TDynamicEventDispatcher<State> BeginStateMulticastDispatcher { get; protected set; }Property Value
CurrentState
Gets or sets the current state.
public State CurrentState { get; set; }Property Value
EndStateMulticastDispatcher
Gets or sets the TDynamicEventDispatcher<T> which handles all the delegates fired when exiting the current state.
public TDynamicEventDispatcher<State> EndStateMulticastDispatcher { get; protected set; }Property Value
PreviousState
Gets or sets the previous state.
public State PreviousState { get; protected set; }Property Value
States
Gets all handled states.
public IEnumerable<State> States { get; }Property Value
Methods
OnStateChanged()
Fired when the state is changed.
protected virtual void OnStateChanged()StateUpdate(State)
Fired every tick from the current state.
public virtual void StateUpdate(State state)Parameters
- stateState
- The state firing the update.