blizzard_engine/game/
mod.rs

1use std::sync::{Arc, Mutex};
2
3/// Game definition
4pub trait Game<K, I> {
5    fn world_config(&mut self);
6    fn update(&mut self, input: I, shared_state: Arc<Mutex<K>>);
7    fn reset_input(&mut self, input: Arc<Mutex<I>>);
8    fn render(&mut self);
9    fn end_game(&self) -> bool;
10}