diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-11 15:27:49 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-11 15:27:49 +0200 |
commit | f61c3b437e5d6f3f32ec558576aa656aaa7dae5e (patch) | |
tree | 2f63feb303404e74ed72cc225c0ebcaf41722043 /server/protocol/src | |
parent | 17e7cb63bf70b35a58cf52ebea4bb543c450320f (diff) | |
download | hurrycurry-f61c3b437e5d6f3f32ec558576aa656aaa7dae5e.tar hurrycurry-f61c3b437e5d6f3f32ec558576aa656aaa7dae5e.tar.bz2 hurrycurry-f61c3b437e5d6f3f32ec558576aa656aaa7dae5e.tar.zst |
send protocol version
Diffstat (limited to 'server/protocol/src')
-rw-r--r-- | server/protocol/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index 2287633d..94bebf05 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -24,6 +24,8 @@ use std::{ pub use glam; +pub const VERSION: (u32, u32) = (1, 0); + #[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)] #[serde(transparent)] pub struct PlayerID(pub i64); @@ -106,6 +108,10 @@ pub enum Message { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "snake_case", tag = "type")] pub enum PacketC { + Version { + minor: u32, + major: u32, + }, Init { id: PlayerID, }, |