public void RequireAcceptTask(NFCoreEx.NFIDENTID objectID, string strTaskID) { NFMsg.ReqAcceptTask xData = new NFMsg.ReqAcceptTask(); xData.task_id = UnicodeEncoding.Default.GetBytes(strTaskID); MemoryStream stream = new MemoryStream(); Serializer.Serialize<NFMsg.ReqAcceptTask>(stream, xData); SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_ACCEPT_TASK, stream); }
public void RequireAcceptTask(NFrame.NFGUID objectID, string strTaskID) { NFMsg.ReqAcceptTask xData = new NFMsg.ReqAcceptTask(); xData.task_id = UnicodeEncoding.Default.GetBytes(strTaskID); MemoryStream stream = new MemoryStream(); Serializer.Serialize <NFMsg.ReqAcceptTask>(stream, xData); SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_ACCEPT_TASK, stream); }
public void RequireAcceptTask(NFrame.NFGUID objectID, string strTaskID) { NFMsg.ReqAcceptTask xData = new NFMsg.ReqAcceptTask(); xData.task_id = UnicodeEncoding.Default.GetBytes(strTaskID); mxBody.SetLength(0); mxSerializer.Serialize(mxBody, xData); SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_ACCEPT_TASK, mxBody); }