blizzard_engine/game/
mod.rs1use std::sync::{Arc, Mutex};
2
3pub 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}