public void SendMsg(AFCoreEx.AFIDENTID xID, AFMsg.EGameMsgID unMsgID, IMessage xData) { MemoryStream stream = new MemoryStream(); MessageExtensions.WriteTo(xData, stream); SendMsg(xID, unMsgID, stream); }
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()); }