public override int writeToBuff(ref NetOutputBuffer buff) { buff.WriteUint(ObjID); buff.WriteUint(StartTime); buff.WriteInt(HandleID); m_posTarget.writeToBuff(ref buff); buff.WriteByte(m_byStopMove); if (IsHaveStopInfo()) { PosStop.writeToBuff(ref buff); buff.WriteInt(StopLogicCount); } return(NET_DEFINE.PACKET_HEADER_SIZE + getSize()); }
public override bool readFromBuff(ref NetInputBuffer buff) { buff.ReadUint(ref m_ObjID); buff.ReadUint(ref m_uStartTime); buff.ReadInt(ref m_nHandleID); m_posTarget.readFromBuff(ref buff); buff.ReadByte(ref m_byStopMove); if (IsHaveStopInfo()) { PosStop.readFromBuff(ref buff); buff.ReadInt(ref m_nStopLogicCount); } return(true); }