//发送心跳 public void RequireHeartBeat() { NFMsg.ReqHeartBeat xData = new NFMsg.ReqHeartBeat(); mxBody.SetLength(0); xData.WriteTo(mxBody); SendMsg((int)NFMsg.EGameMsgID.StsHeartBeat, mxBody); }
//发送心跳 public void RequireHeartBeat(NFrame.NFGUID objectID) { NFMsg.ReqHeartBeat xData = new NFMsg.ReqHeartBeat(); mxBody.SetLength(0); mxSerializer.Serialize(mxBody, xData); SendMsg(objectID, NFMsg.EGameMsgID.EGMI_STS_HEART_BEAT, mxBody); }
public void RequireHeartBeat(NFrame.NFGUID objectID) { NFMsg.ReqHeartBeat xData = new NFMsg.ReqHeartBeat(); MemoryStream stream = new MemoryStream(); Serializer.Serialize <NFMsg.ReqHeartBeat>(stream, xData); SendMsg(objectID, NFMsg.EGameMsgID.EGMI_STS_HEART_BEAT, stream); }
public void RequireHeartBeat(NFCoreEx.NFIDENTID objectID) { NFMsg.ReqHeartBeat xData = new NFMsg.ReqHeartBeat(); MemoryStream stream = new MemoryStream(); Serializer.Serialize<NFMsg.ReqHeartBeat>(stream, xData); SendMsg(objectID, NFMsg.EGameMsgID.EGMI_STS_HEART_BEAT, stream); }