Esempio n. 1
0
 public void Handle_InBattleMsg_Ntf(COMDT_CHAT_MSG_INBATTLE obj)
 {
     if (obj != null)
     {
         ulong ullUid       = obj.stFrom.ullUid;
         uint  dwAcntHeroID = obj.stFrom.dwAcntHeroID;
         uint  dwTextID     = 0;
         if (obj.bChatType == 1)
         {
             dwTextID = obj.stChatInfo.stSignalID.dwTextID;
         }
         else if (obj.bChatType == 2)
         {
             dwTextID = obj.stChatInfo.stBubbleID.dwTextID;
         }
         else if (obj.bChatType == 3)
         {
             DebugHelper.Assert(false, "暂时没有局内交流,自定义功能...");
         }
         this.InnerHandle_InBatMsg((COM_INBATTLE_CHAT_TYPE)obj.bChatType, dwAcntHeroID, dwTextID, ullUid);
     }
 }
Esempio n. 2
0
        public void Handle_InBattleMsg_Ntf(COMDT_CHAT_MSG_INBATTLE obj)
        {
            if (obj == null)
            {
                return;
            }
            ulong ullUid       = obj.stFrom.ullUid;
            uint  dwAcntHeroID = obj.stFrom.dwAcntHeroID;

            if (obj.bChatType == 1)
            {
                uint dwTextID = obj.stChatInfo.get_stSignalID().dwTextID;
                if (this.m_shortcutChat != null)
                {
                    this.m_shortcutChat.InnerHandle_InBat_PreConfigMsg(obj.bChatType, dwAcntHeroID, dwTextID, ullUid);
                }
            }
            else if (obj.bChatType == 2)
            {
                uint dwTextID = obj.stChatInfo.get_stBubbleID().dwTextID;
                if (this.m_shortcutChat != null)
                {
                    this.m_shortcutChat.InnerHandle_InBat_PreConfigMsg(obj.bChatType, dwAcntHeroID, dwTextID, ullUid);
                }
            }
            else if (obj.bChatType == 3)
            {
                string playerName = StringHelper.BytesToString(obj.stFrom.szName);
                string content    = StringHelper.BytesToString_FindFristZero(obj.stChatInfo.get_stContentStr().szContent);
                byte   bCampLimit = obj.stChatInfo.get_stContentStr().bCampLimit;
                this.InnerHandle_InBat_InputChat(ullUid, playerName, content, bCampLimit);
            }
            else
            {
                DebugHelper.Assert(false, string.Format("Handle_InBattleMsg_Ntf chatType:{0} beyond scope", obj.bChatType));
            }
        }