2025-08-17 13:14:17 -04:00
|
|
|
#include "xanimdynamicindices.h"
|
|
|
|
|
|
|
|
|
|
XAnimDynamicIndices::XAnimDynamicIndices()
|
2025-09-05 18:35:17 -04:00
|
|
|
: XAsset()
|
|
|
|
|
, mIndices(1)
|
|
|
|
|
{
|
2025-09-10 21:55:52 -04:00
|
|
|
SetName("Animation Dynamic Indices");
|
2025-09-05 18:35:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-10 21:55:52 -04:00
|
|
|
void XAnimDynamicIndices::ParseData(XDataStream *aStream) {
|
2025-08-17 13:14:17 -04:00
|
|
|
if (GetPtr() == -1) {
|
2025-09-10 21:55:52 -04:00
|
|
|
mIndices[0] = aStream->ParseUInt8(QString("%1 index").arg(GetName()));
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
void XAnimDynamicIndices::Clear()
|
|
|
|
|
{
|
|
|
|
|
mIndices.clear();
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
QVector<quint8> XAnimDynamicIndices::GetIndices() const {
|
|
|
|
|
return mIndices;
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
void XAnimDynamicIndices::SetIndices(QVector<quint8> aIndices) {
|
|
|
|
|
mIndices = aIndices;
|
|
|
|
|
}
|