aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/protocol.rs b/src/protocol.rs
index c1c18e4..1b7eaa0 100644
--- a/src/protocol.rs
+++ b/src/protocol.rs
@@ -3,8 +3,8 @@ use crate::shared::cooldown::*;
use crate::shared::health::*;
use crate::shared::health_event::*;
use crate::shared::imperative::*;
+use crate::shared::player::*;
use crate::shared::projectile::*;
-use crate::shared::*;
use bevy::prelude::*;
use lightyear::prelude::*;
use serde::Deserialize;
@@ -31,7 +31,6 @@ pub enum Messages {
#[component_protocol(protocol = "MyProtocol")]
pub enum Components {
- #[sync(once)]
PlayerId(PlayerId),
PlayerPosition(PlayerPosition),
PlayerColor(PlayerColor),
@@ -54,7 +53,7 @@ protocolize! {
pub fn protocol() -> MyProtocol {
let mut protocol = MyProtocol::default();
protocol.add_channel::<Channel1>(ChannelSettings {
- mode: ChannelMode::OrderedReliable(ReliableSettings::default()),
+ mode: ChannelMode::UnorderedUnreliable,
..Default::default()
});
protocol