Struct ytesrev::scene::SceneList

source ·
pub struct SceneList {
    pub scenes: Vec<Box<dyn Scene>>,
    /* private fields */
}
Expand description

A list of scenes that are showed in order. When the current scene’s action is Action::Done the next scene is loaded.

Fields

scenes: Vec<Box<dyn Scene>>

The list of scenes

Implementations

Create a new SceneList

Gets what scene is being shown

Trait Implementations

Do a tick
Draw the content of this scene to a Canvas.
Called when an event occured
What to do
Register everything. The scene equivalent of Drawable::register Read more
Load everything. The scene equivalent of Drawable::load Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.