75 Ping, |
75 Ping, |
76 Pong, |
76 Pong, |
77 Bye(String), |
77 Bye(String), |
78 Nick(String), |
78 Nick(String), |
79 Proto(u16), |
79 Proto(u16), |
|
80 ServerAuth(String), |
80 LobbyLeft(String, String), |
81 LobbyLeft(String, String), |
81 LobbyJoined(Vec<String>), |
82 LobbyJoined(Vec<String>), |
82 ChatMsg {nick: String, msg: String}, |
83 ChatMsg {nick: String, msg: String}, |
83 ClientFlags(String, Vec<String>), |
84 ClientFlags(String, Vec<String>), |
84 Rooms(Vec<String>), |
85 Rooms(Vec<String>), |
265 "Hedgewars server https://www.hedgewars.org/", |
266 "Hedgewars server https://www.hedgewars.org/", |
266 protocol_version], |
267 protocol_version], |
267 Bye(msg) => msg!["BYE", msg], |
268 Bye(msg) => msg!["BYE", msg], |
268 Nick(nick) => msg!["NICK", nick], |
269 Nick(nick) => msg!["NICK", nick], |
269 Proto(proto) => msg!["PROTO", proto], |
270 Proto(proto) => msg!["PROTO", proto], |
|
271 ServerAuth(hash) => msg!["SERVER_AUTH", hash], |
270 LobbyLeft(nick, msg) => msg!["LOBBY:LEFT", nick, msg], |
272 LobbyLeft(nick, msg) => msg!["LOBBY:LEFT", nick, msg], |
271 LobbyJoined(nicks) => |
273 LobbyJoined(nicks) => |
272 construct_message(&["LOBBY:JOINED"], &nicks), |
274 construct_message(&["LOBBY:JOINED"], &nicks), |
273 ClientFlags(flags, nicks) => |
275 ClientFlags(flags, nicks) => |
274 construct_message(&["CLIENT_FLAGS", flags], &nicks), |
276 construct_message(&["CLIENT_FLAGS", flags], &nicks), |