diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-15 16:07:58 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-15 16:08:00 +0100 |
commit | c71366c2e0a9f0b454957feeb87b51f6b27d54bd (patch) | |
tree | 843e35d09a27275babf4008b58ef72302c18c4ff /src/shared.rs | |
parent | fdee6aa8cf2c51d5004d914458ff661da366e883 (diff) |
feat: add champions
Select champions using the `--champion` flag. Valid values are `ranged`
and `meele` (default).
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 92b6a5b..16cea60 100644 --- a/src/shared.rs +++ b/src/shared.rs @@ -1,4 +1,5 @@ use crate::protocol::Replicate; +use crate::shared::champion::*; use crate::shared::cooldown::*; use crate::shared::health::*; use crate::shared::imperative::*; @@ -8,6 +9,7 @@ use serde::Deserialize; use serde::Serialize; use std::default::Default; +pub mod champion; pub mod cooldown; pub mod health; pub mod imperative; @@ -28,6 +30,7 @@ pub struct PlayerBundle { imperative: Imperative, cooldown: Cooldown, health: Health, + champion: Champion, } #[derive(Component, Message, Serialize, Deserialize, Clone, Copy, Debug, PartialEq)] @@ -49,6 +52,7 @@ impl PlayerBundle { imperative: Imperative::Idle, cooldown: Cooldown::default(), health: Health::default(), + champion: Champion::default(), } } } |