logo
pub trait EngineScene: Process + EntityCollection + Viewable {
    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

The kind of this scene.

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

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

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

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

Implementors