From 3def0368681d1099a31d798c69f121acb8ca6294 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 11 Jan 2022 09:33:21 -0500 Subject: [PATCH] Add MyTurn component --- src/components/simple.rs | 3 +++ src/main.rs | 1 + src/saveload_system.rs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/components/simple.rs b/src/components/simple.rs index a805160..9f0b38d 100644 --- a/src/components/simple.rs +++ b/src/components/simple.rs @@ -49,3 +49,6 @@ pub struct Carnivore {} #[derive(Component, Debug, Serialize, Deserialize, Clone)] pub struct Herbivore {} + +#[derive(Component, Debug, Serialize, Deserialize, Clone)] +pub struct MyTurn {} diff --git a/src/main.rs b/src/main.rs index 8cb25a2..d7725b8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -474,6 +474,7 @@ fn main() -> ::rltk::BError { MagicMapper, MeleeWeapon, Monster, + MyTurn, Name, NaturalAttackDefense, OtherLevelPosition, diff --git a/src/saveload_system.rs b/src/saveload_system.rs index cad6110..73801fc 100644 --- a/src/saveload_system.rs +++ b/src/saveload_system.rs @@ -86,6 +86,7 @@ pub fn save_game(ecs: &mut World) { MagicMapper, MeleeWeapon, Monster, + MyTurn, Name, NaturalAttackDefense, OtherLevelPosition, @@ -192,6 +193,7 @@ pub fn load_game(ecs: &mut World) { MagicMapper, MeleeWeapon, Monster, + MyTurn, Name, NaturalAttackDefense, OtherLevelPosition,