doukutsu-rs/src/scene/mod.rs

18 lines
623 B
Rust
Raw Normal View History

2020-08-19 19:11:32 +00:00
use crate::ggez::{Context, GameResult};
2020-08-18 16:46:07 +00:00
2020-08-19 13:11:34 +00:00
use crate::live_debugger::LiveDebugger;
use crate::SharedGameState;
2020-08-18 16:46:07 +00:00
pub mod game_scene;
pub mod loading_scene;
pub trait Scene {
2020-08-19 13:11:34 +00:00
fn init(&mut self, _state: &mut SharedGameState, _ctx: &mut Context) -> GameResult { Ok(()) }
2020-08-18 16:46:07 +00:00
2020-08-19 13:11:34 +00:00
fn tick(&mut self, _state: &mut SharedGameState, _ctx: &mut Context) -> GameResult { Ok(()) }
2020-08-18 16:46:07 +00:00
2020-08-19 13:11:34 +00:00
fn draw(&self, _state: &mut SharedGameState, _ctx: &mut Context) -> GameResult { Ok(()) }
2020-08-18 16:46:07 +00:00
2020-08-19 13:11:34 +00:00
fn debug_overlay_draw(&mut self, dbg: &mut LiveDebugger, _state: &mut SharedGameState, _ctx: &mut Context, ui: &mut imgui::Ui) -> GameResult { Ok(()) }
2020-08-18 16:46:07 +00:00
}