summaryrefslogtreecommitdiff
path: root/server/protocol
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-18 15:42:19 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-18 15:42:19 +0200
commitfb6ca2a4b9d78dd80dbdf37b2926d9ede4108e8b (patch)
tree76b1a77dcd3ae29595caaa6423a18b5ce29e32db /server/protocol
parente5fdbaadbf01f14290e70c49482e1dce3c9816d8 (diff)
downloadhurrycurry-fb6ca2a4b9d78dd80dbdf37b2926d9ede4108e8b.tar
hurrycurry-fb6ca2a4b9d78dd80dbdf37b2926d9ede4108e8b.tar.bz2
hurrycurry-fb6ca2a4b9d78dd80dbdf37b2926d9ede4108e8b.tar.zst
translate server messages
Diffstat (limited to 'server/protocol')
-rw-r--r--server/protocol/src/lib.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs
index b8f30ce7..fb6ad46e 100644
--- a/server/protocol/src/lib.rs
+++ b/server/protocol/src/lib.rs
@@ -27,7 +27,7 @@ pub use glam;
pub mod movement;
-pub const VERSION: (u32, u32) = (6, 0);
+pub const VERSION: (u32, u32) = (7, 0);
pub const BINCODE_CONFIG: Configuration<LittleEndian, Varint, Limit<4096>> =
standard().with_limit();
@@ -220,7 +220,8 @@ pub enum PacketC {
player: PlayerID,
},
ServerMessage {
- text: String,
+ message: Message,
+ error: bool,
},
ServerHint {
#[bincode(with_serde)]
@@ -232,9 +233,6 @@ pub enum PacketC {
state: bool,
lobby: bool,
},
- Error {
- message: String,
- },
Menu(Menu),
MovementSync {
player: PlayerID,