1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-16 10:52:44 +00:00
doukutsu-rs/src/scene/mod.rs

21 lines
754 B
Rust
Raw Normal View History

use ggez::{Context, GameResult};
2020-08-18 16:46:07 +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;
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
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
}