mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 08:42:35 +00:00
refactor: use generic dumper for iw3 xanims
This commit is contained in:
@@ -8,6 +8,46 @@
|
||||
|
||||
namespace xanim
|
||||
{
|
||||
CommonXQuat::CommonXQuat()
|
||||
: value{}
|
||||
{
|
||||
}
|
||||
|
||||
CommonXQuat::CommonXQuat(const int16_t v0, const int16_t v1, const int16_t v2, const int16_t v3)
|
||||
: value{v0, v1, v2, v3}
|
||||
{
|
||||
}
|
||||
|
||||
CommonXQuat2::CommonXQuat2()
|
||||
: value{}
|
||||
{
|
||||
}
|
||||
|
||||
CommonXQuat2::CommonXQuat2(const int16_t v0, const int16_t v1)
|
||||
: value{v0, v1}
|
||||
{
|
||||
}
|
||||
|
||||
CommonVec3U8::CommonVec3U8()
|
||||
: value{}
|
||||
{
|
||||
}
|
||||
|
||||
CommonVec3U8::CommonVec3U8(const uint8_t x, const uint8_t y, const uint8_t z)
|
||||
: value{x, y, z}
|
||||
{
|
||||
}
|
||||
|
||||
CommonVec3U16::CommonVec3U16()
|
||||
: value{}
|
||||
{
|
||||
}
|
||||
|
||||
CommonVec3U16::CommonVec3U16(const uint16_t x, const uint16_t y, const uint16_t z)
|
||||
: value{x, y, z}
|
||||
{
|
||||
}
|
||||
|
||||
QuatTrack::QuatTrack()
|
||||
: m_type(QuatType::NO_QUAT)
|
||||
{
|
||||
|
||||
@@ -34,21 +34,33 @@ namespace xanim
|
||||
|
||||
struct CommonXQuat
|
||||
{
|
||||
CommonXQuat();
|
||||
CommonXQuat(int16_t v0, int16_t v1, int16_t v2, int16_t v3);
|
||||
|
||||
int16_t value[4];
|
||||
};
|
||||
|
||||
struct CommonXQuat2
|
||||
{
|
||||
CommonXQuat2();
|
||||
CommonXQuat2(int16_t v0, int16_t v1);
|
||||
|
||||
int16_t value[2];
|
||||
};
|
||||
|
||||
struct CommonVec3U8
|
||||
{
|
||||
CommonVec3U8();
|
||||
CommonVec3U8(uint8_t x, uint8_t y, uint8_t z);
|
||||
|
||||
uint8_t value[3];
|
||||
};
|
||||
|
||||
struct CommonVec3U16
|
||||
{
|
||||
CommonVec3U16();
|
||||
CommonVec3U16(uint16_t x, uint16_t y, uint16_t z);
|
||||
|
||||
uint16_t value[3];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user