Add egui as a UI system

This commit is contained in:
2023-10-17 13:53:11 -05:00
parent ad2a304455
commit c5a6fc769d
5 changed files with 333 additions and 9 deletions

View File

@@ -12,6 +12,11 @@ pub struct Armor {
pub ac: u32,
}
#[derive(Component)]
pub struct Named {
pub name: String,
}
#[derive(Bundle)]
pub struct Creature {
pub health: Health,
@@ -20,7 +25,9 @@ pub struct Creature {
}
#[derive(Component)]
pub struct PlayerCharacter;
pub struct PlayerCharacter {
pub name: String,
}
#[derive(Component)]
pub struct Battle(pub HashMap<u32, Entity>);