[−][src]Trait keeshond::scene::BaseScene
A base trait for scenes that can be run from within the gameloop
Required methods
fn think(&mut self, game: &mut GameControl)
Runs the think logic. Ideally, processes all the ThinkerSystems in this scene.
fn draw(
&mut self,
drawing: &mut Box<dyn DrawControl>,
transform: &DrawTransform,
interpolation: f32
)
&mut self,
drawing: &mut Box<dyn DrawControl>,
transform: &DrawTransform,
interpolation: f32
)
Runs the draw logic. Ideally, processes all the DrawerSystems in this scene.
fn start(&mut self, game: &mut GameControl) -> bool
Called to run initialization logic. Ideally, calls ThinkerSystem::start() on all the ThinkerSystems in this scene.
fn end(&mut self, game: &mut GameControl) -> bool
Called to run deinitialization logic. Ideally, calls ThinkerSystem::end() on all the ThinkerSystems in this scene.
fn entity_count(&self) -> usize
Returns the number of Entities in the scene
fn component_count(&self) -> usize
Returns the number of Components in the scene
Implementors
impl<T: SceneType + 'static> BaseScene for Scene<T>
[src]
fn think(&mut self, game: &mut GameControl)
[src]
Processes all the ThinkerSystems in this scene. You normally do not need to call this yourself, as the Gameloop handles this for you.
fn start(&mut self, game: &mut GameControl) -> bool
[src]
Allows all the ThinkerSystems to process their "start of scene" actions. You normally do not need to call this yourself, as the Gameloop handles this for you.
fn end(&mut self, game: &mut GameControl) -> bool
[src]
Allows all the ThinkerSystems to process their "end of scene" actions. You normally do not need to call this yourself, as the Gameloop handles this for you.
fn draw(
&mut self,
drawing: &mut Box<dyn DrawControl>,
transform: &DrawTransform,
interpolation: f32
)
[src]
&mut self,
drawing: &mut Box<dyn DrawControl>,
transform: &DrawTransform,
interpolation: f32
)
Processes all the DrawerSystems in this scene. You normally do not need to call this yourself, as the Gameloop handles this for you.
fn entity_count(&self) -> usize
[src]
Returns the number of Entities in the scene
fn component_count(&self) -> usize
[src]
Returns the number of Components in the scene