コード例 #1
0
        public void SendMsg(AFCoreEx.AFIDENTID xID, AFMsg.EGameMsgID unMsgID, IMessage xData)
        {
            MemoryStream stream = new MemoryStream();

            MessageExtensions.WriteTo(xData, stream);
            SendMsg(xID, unMsgID, stream);
        }
コード例 #2
0
        private void SendMsg(AFCoreEx.AFIDENTID xID, AFMsg.EGameMsgID unMsgID, MemoryStream stream)
        {
            MsgHead head = new MsgHead();

            head.unMsgID = (UInt16)unMsgID;
            head.nHead64 = xID.nHead64;
            head.nData64 = xID.nData64;
            mxPlayerNet.mxNet.SendMsg(head, stream.ToArray());
        }