7 lines
180 B
Rust
7 lines
180 B
Rust
use crate::{StateTransition, context::Context};
|
|
|
|
pub trait Screen {
|
|
fn init_frame(&mut self) {}
|
|
fn handle_frame(&mut self, ctx: &mut Context) -> Option<StateTransition>;
|
|
}
|