Exemplo n.º 1
0
        internal void UpdateChatLobbies(ResponseChatLobbies msg)
        {
            System.Diagnostics.Debug.WriteLineIf(DEBUG, "lobbyList " + msg.lobbies.Count);
            foreach (ChatLobbyInfo lobby in msg.lobbies)
            {
                ProcessLobby(lobby);
            }

            CheckChatRegistration();
        }
Exemplo n.º 2
0
        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);
            }
        }