Enum amethyst_engine::Trans
[−]
[src]
pub enum Trans {
None,
Pop,
Push(Box<State>),
Switch(Box<State>),
Quit,
}Types of state transitions.
Variants
NoneContinue as normal.
PopRemove the active state and resume the next state on the stack or stop if there are none.
Push(Box<State>)Pause the active state and push a new state onto the stack.
Switch(Box<State>)Remove the current state on the stack and insert a different one.
QuitStop and remove all states and shut down the engine.