public bool OnEnterWorldChatroomRsp(EnterWorldChatroomRsp rsp)
 {
     if (rsp.get_retcode() == null)
     {
         this.Close();
     }
     else
     {
         Singleton <MainUIManager> .Instance.ShowDialog(new GeneralHintDialogContext(LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.get_retcode(), new object[0]), 2f), UIType.Any);
     }
     return(false);
 }
Beispiel #2
0
 private bool OnEnterWorldChatroomRsp(EnterWorldChatroomRsp rsp)
 {
     if (rsp.get_retcode() == null)
     {
         this.chatRoomId = (int)rsp.get_chatroom_id();
         this.worldChatMsgList.Clear();
         foreach (ChatMsg msg in rsp.get_his_chat_msg_list())
         {
             this.worldChatMsgList.Add(new ChatMsgDataItem(msg));
         }
         this.worldHistoryMsgIndex = this.worldChatMsgList.Count;
     }
     return(false);
 }