This commit is contained in:
griffi-gh 2023-01-31 02:23:44 +01:00
parent 1f5b5853b2
commit 6f45a0ee77
2 changed files with 5 additions and 1 deletions

View file

@ -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"

View file

@ -8,6 +8,8 @@ pub enum ClientToServerMessage {
password: Option<String>,
},
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,