diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-20 16:56:00 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-20 16:56:00 +0200 |
commit | d720dabb780ba3c73a4656d8dc8fede721d6841d (patch) | |
tree | 67c218637959073385affbebe6a04bb5b4e913ee /server/protocol/src/lib.rs | |
parent | c6733caa49e5b47c68c43b494c073ce7b34adec2 (diff) | |
download | hurrycurry-d720dabb780ba3c73a4656d8dc8fede721d6841d.tar hurrycurry-d720dabb780ba3c73a4656d8dc8fede721d6841d.tar.bz2 hurrycurry-d720dabb780ba3c73a4656d8dc8fede721d6841d.tar.zst |
correctly send lobby bool and send map name
Diffstat (limited to 'server/protocol/src/lib.rs')
-rw-r--r-- | server/protocol/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index d9e8f11e..4ba0f615 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -30,7 +30,7 @@ pub use glam; pub mod movement; -pub const VERSION: (u32, u32) = (2, 0); +pub const VERSION: (u32, u32) = (2, 1); pub const BINCODE_CONFIG: Configuration<LittleEndian, Varint, Limit<4096>> = standard().with_limit(); @@ -72,6 +72,7 @@ pub struct MapMetadata { #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, Default)] #[rustfmt::skip] pub struct ClientGamedata { + pub current_map: String, pub item_names: Vec<String>, pub tile_names: Vec<String>, pub tile_collide: Vec<bool>, |