2025-08-17 13:14:17 -04:00
|
|
|
#include "xanimdeltapartquatdata.h"
|
|
|
|
|
|
|
|
|
|
XAnimDeltaPartQuatData::XAnimDeltaPartQuatData()
|
2025-09-10 21:55:46 -04:00
|
|
|
: XAsset()
|
|
|
|
|
{
|
|
|
|
|
SetName("Animation Delta Part Quat Data");
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-10 21:55:46 -04:00
|
|
|
void XAnimDeltaPartQuatData::ParseData(XDataStream *aStream) {
|
2025-08-17 13:14:17 -04:00
|
|
|
if (GetPtr() == -1) {
|
|
|
|
|
// Parse frames
|
|
|
|
|
mFrames.ParseData(aStream);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const XAnimDeltaPartQuatDataFrames& XAnimDeltaPartQuatData::GetFrames() const {
|
|
|
|
|
return mFrames;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void XAnimDeltaPartQuatData::SetFrames(const XAnimDeltaPartQuatDataFrames& frames) {
|
|
|
|
|
mFrames = frames;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const qint16* XAnimDeltaPartQuatData::GetFrame0() const {
|
|
|
|
|
return mFrame0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void XAnimDeltaPartQuatData::SetFrame0(const qint16* frame0, size_t count) {
|
|
|
|
|
if (count <= 2) {
|
|
|
|
|
memcpy(mFrame0, frame0, count * sizeof(qint16));
|
|
|
|
|
}
|
|
|
|
|
}
|