Table of Contents

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

TDynamicEventDispatcher<State>

CurrentState

Gets or sets the current state.

public State CurrentState { get; set; }

Property Value

State

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

TDynamicEventDispatcher<State>

PreviousState

Gets or sets the previous state.

public State PreviousState { get; protected set; }

Property Value

State

States

Gets all handled states.

public IEnumerable<State> States { get; }

Property Value

IEnumerable<State>

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

state State

The state firing the update.