Skip to main content

IStateTransitionsManager

An interface in Root.Township, Alta.PlayerStates.

Manages a player state's transitions to other states. Implemented by StateTransitionsManager.

Methods​

MemberWhat it is
void Add(IPlayerStateTransition transition)Adds a transition.
void ListenForStateDeactivation()Removes all transitions when the parent state is deactivated.
void Remove(IPlayerStateTransition transition)Removes a transition.
void RemoveAllTransitions()Removes every transition.
void SetActive(IPlayerStateTransition stateTransition, bool isActive)Turns a transition on or off.
void SetToState(PlayerStateType destinationType, PlayerStateHandler preActivationCallback)Asks the state manager to switch to a state type, with a callback run before it activates.
void TriggerTransition(IPlayerStateTransition stateTransition)Runs a transition now.

Used in​

Members of other types that take, return or hold a IStateTransitionsManager: