XPlor/libs/xassets/xanimparts.h

67 lines
1.2 KiB
C
Raw Normal View History

2025-08-17 13:14:17 -04:00
#ifndef XANIMPARTS_H
#define XANIMPARTS_H
#include "xasset.h"
2025-09-05 18:35:17 -04:00
#include "xstring.h"
2025-08-17 13:14:17 -04:00
#include "xanimindices.h"
#include "xanimnotifyinfo.h"
#include "xanimdeltapart.h"
2025-09-05 18:35:17 -04:00
#include <QString>
2025-08-17 13:14:17 -04:00
class XAnimParts : public XAsset
{
public:
explicit XAnimParts();
~XAnimParts() = default;
2025-08-17 13:14:17 -04:00
void ParseData(XDataStream *aStream) override;
2025-09-05 18:35:17 -04:00
void Clear() override;
2025-08-17 13:14:17 -04:00
private:
2025-09-05 18:35:17 -04:00
XString mName;
2025-08-17 13:14:17 -04:00
2025-09-07 12:36:08 -04:00
quint32 mDataByteCount = 0;
quint32 mDataShortCount = 0;
quint32 mDataIntCount = 0;
quint32 mRandomDataByteCount = 0;
quint32 mRandomDataIntCount = 0;
quint32 mNumFrames = 0;
2025-08-17 13:14:17 -04:00
bool mIsLoop = false;
bool mIsDelta = false;
2025-09-05 18:35:17 -04:00
QVector<quint8> mBoneCount;
2025-08-17 13:14:17 -04:00
quint8 mNotifyCount = 0;
quint8 mAssetType = 0;
bool mPad = false;
2025-09-07 12:36:08 -04:00
quint32 mRandomDataShortCount = 0;
quint32 mIndexCount = 0;
2025-08-17 13:14:17 -04:00
float mFramerate = 0.0f;
float mFrequency = 0.0f;
quint16 mNames = 0;
2025-08-17 13:14:17 -04:00
quint8 mDataByte = 0;
qint16 mDataShort = 0;
qint32 mDataInt = 0;
2025-08-17 13:14:17 -04:00
qint16 mRandomDataShort = 0;
quint8 mRandomDataByte = 0;
qint32 mRandomDataInt = 0;
2025-08-17 13:14:17 -04:00
XAnimIndices mIndices;
XAnimNotifyInfo mNotify;
XAnimDeltaPart mDeltaPart;
};
#endif // XANIMPARTS_H