Пример #1
0
        private void EGMI_ACK_CHAT(MsgHead head, MemoryStream stream)
        {
            AFMsg.ReqAckPlayerChat xReqAckChat = ReqAckPlayerChat.Parser.ParseFrom(stream);// new AFMsg.ReqAckPlayerChat();
            //ReceiveMsg(stream, ref xReqAckChat);

            mxPlayerNet.aChatMsgList.Add(PBToAF(xReqAckChat.ChatId).ToString() + ":" + xReqAckChat.ChatInfo);
        }
Пример #2
0
        public void RequireChat(AFCoreEx.AFIDENTID objectID, AFCoreEx.AFIDENTID targetID, int nType, string strData)
        {
            AFMsg.ReqAckPlayerChat xData = new AFMsg.ReqAckPlayerChat();
            xData.ChatId   = AFToPB(targetID);
            xData.ChatType = (AFMsg.ReqAckPlayerChat.Types.EGameChatType)nType;
            xData.ChatInfo = strData;

            SendMsg(objectID, AFMsg.EGameMsgID.EgmiReqChat, xData);
        }