Exemple #1
0
        /// <summary>
        /// 发送聊天信息
        /// </summary>
        /// <param name="channel"></param>
        /// <param name="content"></param>
        /// <param name="cb"></param>
        /// <returns></returns>
        public bool SendMsgChatSystemGC2GMReqChat(SRoleKey roleKey, EChatChanel channel, string content, CChatEquipID equipID, CBMsgChatSystemGM2GCAckChat cb)
        {
            CMsgChatC2GMReqChat req = new CMsgChatC2GMReqChat(roleKey, channel, content, equipID);

            CMsgChatSystemGM2GCAckChat.s_cb = cb;
            return(CGameClient.Singleton.SendMsg(req));
        }
Exemple #2
0
 public CMsgChatC2GMReqChat(SRoleKey receiverKey, EChatChanel channel, string content, CChatEquipID equipID)
     : base(CServerType.SRVTYPE_GAMESERVER, CFuncType.EFUNCTYPE_CHATSYSTEM, CChatSystemMsgNumID.EMSGNUMID_CHATSYSTEM_GC2GM_REQ_CHAT)
 {
     m_roleKey     = receiverKey;
     m_channel     = channel;
     m_content     = content;
     m_chatEquipID = equipID;
 }
Exemple #3
0
        public void SerializeFrom(UnityUtility.CStream stream)
        {
            m_senderKey.serializeFrom(stream);
            m_senderName = stream.ReadString();
            m_VIPLevel   = stream.ReadUInt();
            byte channel = stream.ReadByte();

            m_channel = (EChatChanel)channel;
            if (m_channel == EChatChanel.CHAT_CHANNEL_PRIVATE)
            {
                m_recverKey.serializeFrom(stream);
            }
            m_content = stream.ReadString();
            byte equip = stream.ReadByte();

            if (equip > 0)
            {
                m_equipment = new CEquipItem();
                m_equipment.SerializeFrom(stream);
            }
        }