EngineScene

Trait EngineScene 

Source
pub trait EngineScene:
    Process
    + EntityCollection
    + Viewable {
    // Required methods
    fn kind(&self) -> SceneKind;
    fn is_disposable(&self) -> bool;
    fn is_pauseable(&self) -> bool;
    fn is_muteable(&self) -> bool;
    fn is_session_saved_on_next(&self) -> bool;
}
Expand description

The Scene should be implemented by objects intending to Represents scene states in the SceneManager.

Scenes Represents the larger building blocks of the concept, and contain Entities which do the work.

Required Methods§

Source

fn kind(&self) -> SceneKind

The kind of this scene.

Source

fn is_disposable(&self) -> bool

Sets whether the scene is disposed when no longer the active scene. In most cases this should be true.

Source

fn is_pauseable(&self) -> bool

Sets whether the pause button is displayed / active in the overlay.

Source

fn is_muteable(&self) -> bool

Sets whether the mute button is displayed / active in the overlay.

Source

fn is_session_saved_on_next(&self) -> bool

Sets whether the session is automatically saved when this scene is advanced. In most cases this should be true.

Implementors§