Trait primitives::prelude::EngineScene
source · [−]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
fn is_disposable(&self) -> bool
fn is_disposable(&self) -> bool
Sets whether the scene is disposed when no longer the active scene. In most cases this should be true.
fn is_pauseable(&self) -> bool
fn is_pauseable(&self) -> bool
Sets whether the pause button is displayed / active in the overlay.
fn is_muteable(&self) -> bool
fn is_muteable(&self) -> bool
Sets whether the mute button is displayed / active in the overlay.
fn is_session_saved_on_next(&self) -> bool
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.