--- a/gameServer2/src/protocol/messages.rs Wed Jan 25 23:48:23 2017 +0300
+++ b/gameServer2/src/protocol/messages.rs Thu Jan 26 14:45:44 2017 +0300
@@ -75,6 +75,7 @@
Bye(&'a str),
Nick(&'a str),
LobbyLeft(&'a str),
+ LobbyJoined(&'a [&'a str]),
Connected(u32),
Unreachable,
@@ -111,6 +112,12 @@
=> construct_message(&["NICK", &nick]),
&HWServerMessage::LobbyLeft(msg)
=> construct_message(&["LOBBY_LEFT", &msg]),
+ &HWServerMessage::LobbyJoined(msg)
+ => {
+ let mut v = vec!["LOBBY:JOINED"];
+ v.extend_from_slice(msg);
+ construct_message(&v)
+ },
_ => construct_message(&["ERROR", "UNIMPLEMENTED"]),
}
}