[][src]Trait tge::game::Game

pub trait Game {
    fn update(&mut self, engine: &mut Engine) -> GameResult;
fn render(&mut self, engine: &mut Engine) -> GameResult; fn event(&mut self, _: &mut Engine, _: Event) -> GameResult<bool> { ... } }

Required methods

fn update(&mut self, engine: &mut Engine) -> GameResult

fn render(&mut self, engine: &mut Engine) -> GameResult

Loading content...

Provided methods

fn event(&mut self, _: &mut Engine, _: Event) -> GameResult<bool>

Loading content...

Implementors

Loading content...