Enum ggez_goodies::scene::SceneSwitch [] [src]

pub enum SceneSwitch<C, Ev> {
    None,
    Push(Box<Scene<C, Ev>>),
    Replace(Box<Scene<C, Ev>>),
    Pop,
}

A command to change to a new scene, either by pushign a new one, popping one or replacing the current scene (pop and then push).

Variants

Methods

impl<C, Ev> SceneSwitch<C, Ev>
[src]

[src]

Convenient shortcut function for boxing scenes.

Slightly nicer than writing SceneSwitch::Replace(Box::new(x)) all the damn time.

[src]

Same as replace() but returns SceneSwitch::Push

Trait Implementations

Auto Trait Implementations

impl<C, Ev> !Send for SceneSwitch<C, Ev>

impl<C, Ev> !Sync for SceneSwitch<C, Ev>