22 lines
376 B
C++
22 lines
376 B
C++
#include "xpackedunitvec.h"
|
|
|
|
XPackedUnitVec::XPackedUnitVec()
|
|
: XAsset()
|
|
, mArray()
|
|
{
|
|
SetName("Packed Unit Vec");
|
|
}
|
|
|
|
void XPackedUnitVec::ParseData(XDataStream *aStream)
|
|
{
|
|
for (int i = 0; i < 4; i++)
|
|
{
|
|
mArray.push_back(aStream->ParseInt8(QString("%1 array %2").arg(GetName()).arg(i)));
|
|
}
|
|
}
|
|
|
|
void XPackedUnitVec::Clear()
|
|
{
|
|
mArray.clear();
|
|
}
|