diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:22:14 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:22:14 +0100 |
commit | 701eee31bff9416a9822ca54388a9ec8fabd09a4 (patch) | |
tree | 0ab78b6c7b32b6d3bedf1960aefa20226d43bfe8 | |
parent | 193cb6670addf16bb18b76a1badc00f648150d0b (diff) |
fix: fix champion selection
-rw-r--r-- | src/protocol.rs | 2 | ||||
-rw-r--r-- | src/shared/stats.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index f8f1f62..8a83260 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -57,7 +57,7 @@ protocolize! { pub fn protocol() -> MyProtocol { let mut protocol = MyProtocol::default(); protocol.add_channel::<Channel1>(ChannelSettings { - mode: ChannelMode::UnorderedUnreliable, + mode: ChannelMode::UnorderedReliable(Default::default()), ..Default::default() }); protocol diff --git a/src/shared/stats.rs b/src/shared/stats.rs index 749453c..8513a3c 100644 --- a/src/shared/stats.rs +++ b/src/shared/stats.rs @@ -1,15 +1,15 @@ use crate::shared::*; -#[derive(Clone, Copy, Serialize, Deserialize, PartialEq)] +#[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Debug)] pub struct Stats { pub attack_range: f32, pub movement_speed: f32, } -#[derive(Component, Message, Clone, Copy, Serialize, Deserialize, PartialEq)] +#[derive(Component, Message, Clone, Copy, Serialize, Deserialize, PartialEq, Debug)] pub struct BaseStats(pub Stats); -#[derive(Component, Message, Clone, Copy, Serialize, Deserialize, PartialEq)] +#[derive(Component, Message, Clone, Copy, Serialize, Deserialize, PartialEq, Debug)] pub struct EffectiveStats(pub Stats); impl BaseStats { |