Struct Engine
topaz
pub struct Engine { /* fields omitted */ }
The state manager.
impl Engine
fn new() -> Self
fn push_state(&mut self, state: Rc<RefCell<State>>)
Push a state onto the stack.
fn run(self)
Run the Engine, starting with the state on the top of the stack.
Engine
Since this function consumes the Engine, it cannot be reused.