From c71366c2e0a9f0b454957feeb87b51f6b27d54bd Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 15 Mar 2024 16:07:58 +0100 Subject: feat: add champions Select champions using the `--champion` flag. Valid values are `ranged` and `meele` (default). --- src/shared.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared.rs') 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(), } } } -- cgit v1.2.3