This commit is contained in:
2026-02-09 15:13:50 +01:00
commit fb87c0639c
22 changed files with 530 additions and 0 deletions

24
game-core/src/render.rs Normal file
View 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],
},
}