Inheritance: global::ProtoBuf.IExtensible
Exemplo n.º 1
0
        private void EGMI_ACK_CHAT(NFMsg.MsgBase xMsg)
        {
            NFMsg.ReqAckPlayerChat xData = new NFMsg.ReqAckPlayerChat();
            xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.ReqAckPlayerChat)) as NFMsg.ReqAckPlayerChat;

            mxNetController.aChatMsgList.Add(NFNetController.PBToNF(xData.chat_id).ToString() + ":" + System.Text.Encoding.Default.GetString(xData.chat_info));
        }
Exemplo n.º 2
0
        private void EGMI_ACK_CHAT(MsgHead head, MemoryStream stream)
        {
            NFMsg.MsgBase xMsg = new NFMsg.MsgBase();
            xMsg = Serializer.Deserialize <NFMsg.MsgBase>(stream);

            NFMsg.ReqAckPlayerChat xReqAckChat = new NFMsg.ReqAckPlayerChat();
            xReqAckChat = Serializer.Deserialize <NFMsg.ReqAckPlayerChat>(new MemoryStream(xMsg.msg_data));

            aChatMsgList.Add(PBToNF(xReqAckChat.chat_id).ToString() + ":" + System.Text.Encoding.Default.GetString(xReqAckChat.chat_info));
        }
Exemplo n.º 3
0
        public void RequireChat(NFrame.NFGUID objectID, NFrame.NFGUID targetID, int nType, string strData)
        {
            NFMsg.ReqAckPlayerChat xData = new NFMsg.ReqAckPlayerChat();
            xData.chat_id   = NFNetController.NFToPB(targetID);
            xData.chat_name = UnicodeEncoding.Default.GetBytes(mxNetController.strRoleName);
            xData.chat_type = (NFMsg.ReqAckPlayerChat.EGameChatType)nType;
            xData.chat_info = UnicodeEncoding.Default.GetBytes(strData);

            mxBody.SetLength(0);
            mxSerializer.Serialize(mxBody, xData);

            SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_CHAT, mxBody);
        }
Exemplo n.º 4
0
    public void RequireChat(NFrame.NFGUID objectID, NFrame.NFGUID targetID, int nType, string strData)
    {
        NFMsg.ReqAckPlayerChat xData = new NFMsg.ReqAckPlayerChat();
        xData.chat_id   = NFToPB(targetID);
        xData.chat_name = UnicodeEncoding.Default.GetBytes(xNet.strRoleName);
        xData.chat_type = (NFMsg.ReqAckPlayerChat.EGameChatType)nType;
        xData.chat_info = UnicodeEncoding.Default.GetBytes(strData);

        MemoryStream stream = new MemoryStream();

        Serializer.Serialize <NFMsg.ReqAckPlayerChat>(stream, xData);

        SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_CHAT, stream);
    }
Exemplo n.º 5
0
        private void EGMI_ACK_CHAT(MsgHead head, MemoryStream stream)
        {
            NFMsg.MsgBase xMsg = new NFMsg.MsgBase();
            xMsg = Serializer.Deserialize<NFMsg.MsgBase>(stream);

            NFMsg.ReqAckPlayerChat xReqAckChat = new NFMsg.ReqAckPlayerChat();
            xReqAckChat = Serializer.Deserialize<NFMsg.ReqAckPlayerChat>(new MemoryStream(xMsg.msg_data));

            aChatMsgList.Add(PBToNF(xReqAckChat.chat_id).ToString() + ":" + System.Text.Encoding.Default.GetString(xReqAckChat.chat_info));
        }
Exemplo n.º 6
0
    public void RequireChat(NFCoreEx.NFIDENTID objectID, NFCoreEx.NFIDENTID targetID, int nType, string strData)
    {
        NFMsg.ReqAckPlayerChat xData = new NFMsg.ReqAckPlayerChat();
        xData.chat_id = NFToPB(targetID);
        xData.chat_name = UnicodeEncoding.Default.GetBytes(xNet.strRoleName);
        xData.chat_type = (NFMsg.ReqAckPlayerChat.EGameChatType)nType;
        xData.chat_info = UnicodeEncoding.Default.GetBytes(strData);

        MemoryStream stream = new MemoryStream();
        Serializer.Serialize<NFMsg.ReqAckPlayerChat>(stream, xData);

        SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_CHAT, stream);
    }