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
|
|
|
}
|
|
|
|
|
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 XAnimIndices::GetIndex() const {
|
2025-08-17 13:14:17 -04:00
|
|
|
return mIndex;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-07 12:36:08 -04:00
|
|
|
void XAnimIndices::SetIndex(quint32 index) {
|
2025-08-17 13:14:17 -04:00
|
|
|
mIndex = index;
|
|
|
|
|
}
|