internal void UpdateChatLobbies(ResponseChatLobbies msg) { System.Diagnostics.Debug.WriteLineIf(DEBUG, "lobbyList " + msg.lobbies.Count); foreach (ChatLobbyInfo lobby in msg.lobbies) { ProcessLobby(lobby); } CheckChatRegistration(); }
private void ProcessChatLobbies(RSProtoBuffSSHMsg msg) { ResponseChatLobbies response = new ResponseChatLobbies(); Exception e; if (RSProtoBuf.Deserialize <ResponseChatLobbies>(msg.ProtoBuffMsg, out response, out e)) { if (response.status.code == Status.StatusCode.SUCCESS) { _b.ChatProcessor.UpdateChatLobbies(response); } } else { System.Diagnostics.Debug.WriteLine("ProcessChatMsg: error deserializing " + e.Message); } }