The state to deactivate.
The command/event instance that is associated with this state.
The command/event's arguments (if any). Only strings are supported.
Deactivates the current state. Needs to exist outside of _stateExited() as it is also called on state activation in case there is a modal state active.
The state to deactivate.
The command/event instance that is associated with this state.
The command/event's arguments (if any). Only strings are supported.
Run whenever a state is entered.
The state this is being entered.
The command/event instance that is associated with this state.
The command/event's arguments (if any). Only strings are supported.
Run whenever a state is exited.
The state to exit.
The command/event instance that is associated with this state.
The command/event's arguments (if any). Only strings are supported.
Returns an array of the currently active states. Does not return children that currently lack an active parent.
Returns an array with the names of all states in the registry.
Returns the currently active modal state, if any. Returns null if there is no state.
Returns a state from the manager's registry.
The name of the state to retrieve from the registry.
Returns whether a state is currently active or not.
The name of the state that is being checked.
Returns whether a modal state is currently active or not.
Run when the State Manager is destroyed.
Used to load the states into the registry. Does not allow for duplicate states.
The state to add to the registry.
Exits any child states that should be exiting on the same command/event as the parent state.