2020-11-04 23:25:18 +00:00
|
|
|
use ggez::{Context, GameResult};
|
2020-08-18 16:46:07 +00:00
|
|
|
|
2020-09-20 15:27:31 +00:00
|
|
|
use crate::shared_game_state::SharedGameState;
|
2020-08-23 02:16:31 +00:00
|
|
|
use crate::ui::Components;
|
2020-08-18 16:46:07 +00:00
|
|
|
|
|
|
|
pub mod game_scene;
|
|
|
|
pub mod loading_scene;
|
2020-09-20 01:05:41 +00:00
|
|
|
pub mod title_scene;
|
2020-08-18 16:46:07 +00:00
|
|
|
|
|
|
|
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-10-30 22:47:29 +00:00
|
|
|
fn draw_tick(&mut self, _state: &mut SharedGameState, _ctx: &mut Context) -> GameResult { Ok(()) }
|
|
|
|
|
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-23 02:16:31 +00:00
|
|
|
fn debug_overlay_draw(&mut self, _game_ui: &mut Components, _state: &mut SharedGameState, _ctx: &mut Context, _frame: &mut imgui::Ui) -> GameResult { Ok(()) }
|
2020-08-18 16:46:07 +00:00
|
|
|
}
|