XPlor/libs/xassets/xanimindices.cpp

38 lines
530 B
C++
Raw Normal View History

2025-09-05 18:35:17 -04:00
#include "xanimindices.h"
2025-08-17 13:14:17 -04:00
2025-09-05 18:35:17 -04:00
XAnimIndices::XAnimIndices()
: XAsset()
, mIndex(0)
{
2025-08-17 13:14:17 -04:00
2025-09-05 18:35:17 -04:00
}
2025-08-17 13:14:17 -04:00
2025-09-05 18:35:17 -04:00
XAnimIndices::~XAnimIndices()
{
2025-08-17 13:14:17 -04:00
}
void XAnimIndices::ParseData(QDataStream *aStream) {
if (GetPtr() == -1) {
2025-09-05 18:35:17 -04:00
qint32 indexPtr;
*aStream >> indexPtr;
if (indexPtr == -1)
{
*aStream >> mIndex;
}
2025-08-17 13:14:17 -04:00
}
}
2025-09-05 18:35:17 -04:00
void XAnimIndices::Clear()
{
mIndex = 0;
2025-08-17 13:14:17 -04:00
}
quint16 XAnimIndices::GetIndex() const {
return mIndex;
}
void XAnimIndices::SetIndex(quint16 index) {
mIndex = index;
}