doukutsu-rs/src/framework/backend.rs

9 lines
183 B
Rust
Raw Normal View History

2021-01-27 18:20:47 +00:00
use crate::Game;
pub(crate) trait Backend {
fn create_event_loop(&self) -> Box<dyn BackendEventLoop>;
}
pub(crate) trait BackendEventLoop {
fn run(&self, game: &mut Game);
}