[][src]Trait pix_engine::State

pub trait State {
    fn on_start(&mut self, _data: &mut StateData) -> PixEngineResult<bool> { ... }
fn on_stop(&mut self, _data: &mut StateData) -> PixEngineResult<bool> { ... }
fn on_update(
        &mut self,
        _elapsed: f32,
        _data: &mut StateData
    ) -> PixEngineResult<bool> { ... } }

Provided methods

fn on_start(&mut self, _data: &mut StateData) -> PixEngineResult<bool>

fn on_stop(&mut self, _data: &mut StateData) -> PixEngineResult<bool>

fn on_update(
    &mut self,
    _elapsed: f32,
    _data: &mut StateData
) -> PixEngineResult<bool>

Loading content...

Implementors

Loading content...