ux-dx 0.2.0

3D Graphics Primitives for Angular Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::ext::{engine::Engine, error::GameResult, event::Event};

pub trait Game {
    fn update(&mut self, engine: &mut Engine) -> GameResult;

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

    fn event(&mut self, _engine: &mut Engine, _event: Event) -> GameResult<bool> {
        Ok(false)
    }
}