Methods
StateManagedClass:beforeStateChange(old: string, new: string)
(Override) Called before the state is changed through StateManager:setState.
@param old — The current state, from before the change.
@param new — The state from after the change.
@return — If true is returned, the rest of the setState process except the updating of self.state will be skipped.
Arguments:
| old: string | The current state, from before the change. |
| new: string | The state from after the change. |
Returns:
| 1: boolean? | If |
StateManagedClass:onStateChange(old: string, new: string, : any)
(Override) Called after the state is changed through StateManager:setState.
@param old — The state from before the change.
@param new — The current state, from after the change.
@param ... — Arguments for the new state.
Arguments:
| old: string | The state from before the change. |
| new: string | The current state, from after the change. |
| : any | Arguments for the new state. |