Struct gg::scene::StackSceneManager
[−]
[src]
pub struct StackSceneManager<T: Sized + Clone> { // some fields omitted }
A sample implementation of SceneManager
can be used as is for a stack
based scene system. The type parameter is the state of the game.
Methods
impl<T: Clone> StackSceneManager<T>
fn new(state: T) -> StackSceneManager<T>
Creates a new StackSceneManager. It has nothing in it,
you probably want to use with_scene
fn with_scene(state: T, scene: Box<Scene<State=T>>) -> StackSceneManager<T>
Creates a StackSceneManager with