diff options
-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 { |