38 lines
1019 B
C++
38 lines
1019 B
C++
#include "xdynentitycoll.h"
|
|
|
|
XDynEntityColl::XDynEntityColl()
|
|
: XAsset()
|
|
, mSector(0)
|
|
, mNextEntInSector(0)
|
|
, mLinkMins()
|
|
, mLinkMaxs()
|
|
{
|
|
SetName("Dynamic Entity Coll");
|
|
}
|
|
|
|
XDynEntityColl::~XDynEntityColl()
|
|
{
|
|
|
|
}
|
|
|
|
void XDynEntityColl::ParseData(XDataStream *aStream)
|
|
{
|
|
if (GetPtr())
|
|
{
|
|
mSector = aStream->ParseUInt32(QString("%1 sector").arg(GetName()));
|
|
mNextEntInSector = aStream->ParseUInt32(QString("%1 next ent in sector").arg(GetName()));
|
|
mLinkMins[0] = aStream->ParseSingle(QString("%1 link min 1").arg(GetName()));
|
|
mLinkMins[1] = aStream->ParseSingle(QString("%1 link min 2").arg(GetName()));
|
|
mLinkMaxs[0] = aStream->ParseSingle(QString("%1 link max 1").arg(GetName()));
|
|
mLinkMaxs[1] = aStream->ParseSingle(QString("%1 link max 2").arg(GetName()));
|
|
}
|
|
}
|
|
|
|
void XDynEntityColl::Clear()
|
|
{
|
|
mSector = 0;
|
|
mNextEntInSector = 0;
|
|
mLinkMins = QVector2D();
|
|
mLinkMaxs = QVector2D();
|
|
}
|