diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-15 14:04:17 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-15 14:25:01 +0100 |
commit | fdee6aa8cf2c51d5004d914458ff661da366e883 (patch) | |
tree | 0c022856e64e72a00305e28a684e139696c297ab /src/shared.rs | |
parent | 1e162629da53373f0e2502014d42c7636412e67e (diff) |
feat: add health/ damage
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(), } } } |