relocate SplitWord, SplitHWord to global.h

This commit is contained in:
theo3 2020-07-22 23:06:28 -07:00
parent 67da19b92c
commit e0cfbb15a5
2 changed files with 14 additions and 14 deletions

View File

@ -25,20 +25,6 @@ typedef struct {
u8 unknown2[4];
} BoundingBox;
union SplitWord {
s32 WORD;
struct {
s16 LO, HI;
} HALF;
};
union SplitHWord {
u16 HWORD;
struct {
u8 LO, HI;
} PACKED HALF;
} PACKED;
typedef struct Entity {
/*0x00*/ u32* field_0x0;
/*0x04*/ u32* field_0x4;

View File

@ -59,4 +59,18 @@ struct UCoords16
u16 y;
};
union SplitWord {
s32 WORD;
struct {
s16 LO, HI;
} HALF;
};
union SplitHWord {
u16 HWORD;
struct {
u8 LO, HI;
} PACKED HALF;
} PACKED;
#endif // GUARD_GLOBAL_H