From 6f45a0ee778c9ed40f9da509c27fb14a5f8cbc8c Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 31 Jan 2023 02:23:44 +0100 Subject: [PATCH] upd --- kubi-shared/Cargo.toml | 1 + kubi-shared/src/networking/messages.rs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kubi-shared/Cargo.toml b/kubi-shared/Cargo.toml index 6fa1d1a..6568ab7 100644 --- a/kubi-shared/Cargo.toml +++ b/kubi-shared/Cargo.toml @@ -11,3 +11,4 @@ strum = { version = "0.24", features = ["derive"] } bincode = { version = "2.0.0-rc", default_features = false, features = ["std", "serde"] } serde = { version = "1.0", features = ["derive"] } bracket-noise = "0.8" +#laminar = "0.5.0" diff --git a/kubi-shared/src/networking/messages.rs b/kubi-shared/src/networking/messages.rs index af646e7..5940f24 100644 --- a/kubi-shared/src/networking/messages.rs +++ b/kubi-shared/src/networking/messages.rs @@ -8,6 +8,8 @@ pub enum ClientToServerMessage { password: Option, }, PositionChanged { + client_id: u8, + secret: u32, position: Vec3, direction: Quat } @@ -16,7 +18,8 @@ pub enum ClientToServerMessage { #[derive(Serialize, Deserialize)] pub enum ServerToClientMessage { ServerHello { - client_id: u16, + client_id: u8, + secret: u32, }, ServerFuckOff { reason: String,