forked from astro/affection-rs
22 lines
384 B
Rust
22 lines
384 B
Rust
use affection::*;
|
|
|
|
struct Example {
|
|
}
|
|
|
|
impl Callbacks for Example {
|
|
fn load_state() -> Self {
|
|
Example {}
|
|
}
|
|
fn handle_event(&mut self, ev: Event) {}
|
|
fn update(&mut self) {}
|
|
fn draw(&self, graphics: &mut Graphics) {}
|
|
fn clean_up(self) {}
|
|
fn do_next_step(&self) -> bool {
|
|
true
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
run::<Example>(Config::default());
|
|
}
|