This commit is contained in:
griffi-gh 2023-01-31 02:23:44 +01:00
parent fae78e32dd
commit b855e57fae
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"] } bincode = { version = "2.0.0-rc", default_features = false, features = ["std", "serde"] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
bracket-noise = "0.8" bracket-noise = "0.8"
#laminar = "0.5.0"

View file

@ -8,6 +8,8 @@ pub enum ClientToServerMessage {
password: Option<String>, password: Option<String>,
}, },
PositionChanged { PositionChanged {
client_id: u8,
secret: u32,
position: Vec3, position: Vec3,
direction: Quat direction: Quat
} }
@ -16,7 +18,8 @@ pub enum ClientToServerMessage {
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
pub enum ServerToClientMessage { pub enum ServerToClientMessage {
ServerHello { ServerHello {
client_id: u16, client_id: u8,
secret: u32,
}, },
ServerFuckOff { ServerFuckOff {
reason: String, reason: String,