diff options
Diffstat (limited to 'src/shared.rs')
-rw-r--r-- | src/shared.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared.rs b/src/shared.rs index b3a7cc4..92b6a5b 100644 --- a/src/shared.rs +++ b/src/shared.rs @@ -1,5 +1,6 @@ use crate::protocol::Replicate; use crate::shared::cooldown::*; +use crate::shared::health::*; use crate::shared::imperative::*; use bevy::prelude::*; use lightyear::prelude::*; @@ -8,6 +9,7 @@ use serde::Serialize; use std::default::Default; pub mod cooldown; +pub mod health; pub mod imperative; pub mod projectile; @@ -25,6 +27,7 @@ pub struct PlayerBundle { replicate: Replicate, imperative: Imperative, cooldown: Cooldown, + health: Health, } #[derive(Component, Message, Serialize, Deserialize, Clone, Copy, Debug, PartialEq)] @@ -45,6 +48,7 @@ impl PlayerBundle { replicate: Replicate::default(), imperative: Imperative::Idle, cooldown: Cooldown::default(), + health: Health::default(), } } } |