mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 21:08:19 -06:00
upd
This commit is contained in:
parent
fae78e32dd
commit
b855e57fae
|
@ -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"
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue