From 701eee31bff9416a9822ca54388a9ec8fabd09a4 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 18 Mar 2024 07:22:14 +0100 Subject: fix: fix champion selection --- src/protocol.rs | 2 +- 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::(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 { -- cgit v1.2.3