Trait keeshond::scene::BaseScene[][src]

pub trait BaseScene {
    fn think(&mut self, game: &mut GameControl);
fn draw(
        &mut self,
        resources: &DataMultistore,
        drawing: &mut Box<dyn DrawControl>,
        transform: &DrawTransform,
        interpolation: f32
    );
fn start(&mut self, game: &mut GameControl) -> bool;
fn end(&mut self, game: &mut GameControl) -> bool;
fn entity_count(&self) -> usize;
fn component_count(&self) -> usize; }
Expand description

A base trait for scenes that can be run from within the gameloop

Required methods

Runs the think logic. Ideally, processes all the ThinkerSystems in this scene.

Runs the draw logic. Ideally, processes all the DrawerSystems in this scene.

Called to run initialization logic. Ideally, calls ThinkerSystem::start() on all the ThinkerSystems in this scene.

Called to run deinitialization logic. Ideally, calls ThinkerSystem::end() on all the ThinkerSystems in this scene.

Returns the number of Entities in the scene

Returns the number of Components in the scene

Implementors