2020-08-18 16:46:07 +00:00
|
|
|
use ggez::{Context, GameResult};
|
|
|
|
|
2020-08-19 11:21:40 +00:00
|
|
|
use crate::GameContext;
|
|
|
|
use crate::game_state::GameState;
|
2020-08-18 16:46:07 +00:00
|
|
|
|
|
|
|
pub mod game_scene;
|
|
|
|
pub mod loading_scene;
|
|
|
|
|
|
|
|
pub trait Scene {
|
2020-08-19 11:21:40 +00:00
|
|
|
fn init(&mut self, _state: &mut GameState, _game_ctx: &mut GameContext, _ctx: &mut Context) -> GameResult { Ok(()) }
|
2020-08-18 16:46:07 +00:00
|
|
|
|
2020-08-19 11:21:40 +00:00
|
|
|
fn tick(&mut self, _state: &mut GameState, _game_ctx: &mut GameContext, _ctx: &mut Context) -> GameResult { Ok(()) }
|
2020-08-18 16:46:07 +00:00
|
|
|
|
2020-08-19 11:21:40 +00:00
|
|
|
fn draw(&self, _state: &GameState, _game_ctx: &mut GameContext, _ctx: &mut Context) -> GameResult { Ok(()) }
|
2020-08-18 16:46:07 +00:00
|
|
|
|
2020-08-19 11:21:40 +00:00
|
|
|
fn overlay_draw(&mut self, _state: &mut GameState, _game_ctx: &mut GameContext, _ctx: &mut Context, _ui: &mut imgui::Ui) -> GameResult { Ok(()) }
|
2020-08-18 16:46:07 +00:00
|
|
|
}
|