1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-09-28 21:19:24 +00:00
doukutsu-rs/src/scene/mod.rs

18 lines
665 B
Rust
Raw Normal View History

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
}