2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-20 19:35:41 +00:00

chore: make xquat and xquat2 structs to improve handling from zcg

This commit is contained in:
Jan Laupetin 2025-06-19 21:07:11 +02:00 committed by Jan
parent 80558af9a1
commit 2230efbd27
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
5 changed files with 38 additions and 14 deletions

View File

@ -255,7 +255,10 @@ namespace IW3
XAnimPartTransData u;
};
typedef tdef_align32(4) short XQuat[2];
struct type_align(4) XQuat
{
int16_t value[4];
};
union XAnimDynamicIndicesQuat
{
@ -272,7 +275,7 @@ namespace IW3
union XAnimDeltaPartQuatData
{
XAnimDeltaPartQuatDataFrames frames;
int16_t frame0[2];
XQuat frame0;
};
struct XAnimDeltaPartQuat

View File

@ -371,7 +371,10 @@ namespace IW4
uint16_t _2[1];
};
typedef tdef_align32(4) short XQuat2[2];
struct type_align(4) XQuat2
{
int16_t value[2];
};
struct type_align32(4) XAnimDeltaPartQuatDataFrames2
{
@ -382,7 +385,7 @@ namespace IW4
union XAnimDeltaPartQuatData2
{
XAnimDeltaPartQuatDataFrames2 frames;
int16_t frame0[2];
XQuat2 frame0;
};
struct XAnimDeltaPartQuat2
@ -397,7 +400,10 @@ namespace IW4
uint16_t _2[1];
};
typedef tdef_align32(4) short XQuat[4];
struct type_align(4) XQuat
{
int16_t value[4];
};
struct XAnimDeltaPartQuatDataFrames
{
@ -408,7 +414,7 @@ namespace IW4
union XAnimDeltaPartQuatData
{
XAnimDeltaPartQuatDataFrames frames;
int16_t frame0[4];
XQuat frame0;
};
struct XAnimDeltaPartQuat

View File

@ -379,7 +379,10 @@ namespace IW5
uint16_t _2[1];
};
typedef tdef_align32(4) short XQuat2[2];
struct type_align(4) XQuat2
{
int16_t value[2];
};
struct type_align32(4) XAnimDeltaPartQuatDataFrames2
{
@ -390,7 +393,7 @@ namespace IW5
union XAnimDeltaPartQuatData2
{
XAnimDeltaPartQuatDataFrames2 frames;
short frame0[2];
XQuat2 frame0;
};
struct XAnimDeltaPartQuat2
@ -405,7 +408,10 @@ namespace IW5
uint16_t _2[1];
};
typedef tdef_align32(4) short XQuat[4];
struct type_align(4) XQuat
{
int16_t value[4];
};
struct XAnimDeltaPartQuatDataFrames
{
@ -416,7 +422,7 @@ namespace IW5
union XAnimDeltaPartQuatData
{
XAnimDeltaPartQuatDataFrames frames;
short frame0[4];
XQuat frame0;
};
struct XAnimDeltaPartQuat

View File

@ -385,7 +385,10 @@ namespace T5
XAnimPartTransData u;
};
typedef tdef_align32(4) short XQuat[2];
struct type_align(4) XQuat
{
int16_t value[4];
};
union XAnimDynamicIndicesQuat
{
@ -402,7 +405,7 @@ namespace T5
union XAnimDeltaPartQuatData
{
XAnimDeltaPartQuatDataFrames frames;
int16_t frame0[2];
XQuat frame0;
};
struct XAnimDeltaPartQuat

View File

@ -5650,7 +5650,10 @@ namespace T6
uint16_t _2[1];
};
typedef tdef_align32(4) int16_t XQuat2[2];
struct type_align(4) XQuat2
{
int16_t value[2];
};
struct type_align32(4) XAnimDeltaPartQuatDataFrames2
{
@ -5676,7 +5679,10 @@ namespace T6
uint16_t _2[1];
};
typedef tdef_align32(4) int16_t XQuat[4];
struct type_align(4) XQuat
{
int16_t value[4];
};
struct type_align32(4) XAnimDeltaPartQuatDataFrames
{