From fb6ca2a4b9d78dd80dbdf37b2926d9ede4108e8b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 18 Sep 2024 15:42:19 +0200 Subject: translate server messages --- server/protocol/src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'server/protocol/src/lib.rs') 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> = 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, -- cgit v1.2.3-70-g09d2