init
This commit is contained in:
24
game-core/src/render.rs
Normal file
24
game-core/src/render.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
use crate::types::Stats;
|
||||
|
||||
pub enum RenderRequest<'a> {
|
||||
MainMenu,
|
||||
CharacterCreation {
|
||||
step: u8,
|
||||
prompt: &'static str,
|
||||
},
|
||||
Exploration {
|
||||
tiles: &'a [u8],
|
||||
width: u8,
|
||||
player_idx: usize,
|
||||
message: &'a str,
|
||||
},
|
||||
Combat {
|
||||
player_stats: &'a Stats,
|
||||
enemy_stats: &'a Stats,
|
||||
log: &'a str,
|
||||
},
|
||||
Dialogue {
|
||||
text: &'a str,
|
||||
options: &'a [&'static str],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user