Enum amethyst::Trans [] [src]

pub enum Trans {
    None,
    Pop,
    Push(Box<State>),
    Switch(Box<State>),
    Quit,
}

Types of state transitions.

Variants

Continue as normal.

Remove the active state and resume the next state on the stack or stop if there are none.

Pause the active state and push a new state onto the stack.

Remove the current state on the stack and insert a different one.

Stop and remove all states and shut down the engine.