97F80, A4290, and A48B0 matching, started bss import on engine. (#47)

* stuff

* three whole files

* format

* format and such

* one cleanup
This commit is contained in:
petrie911
2023-12-09 12:53:24 -06:00
committed by GitHub
parent 392305e919
commit c9e58a815d
23 changed files with 1592 additions and 531 deletions
+34 -8
View File
@@ -6,6 +6,34 @@
#define UNK_TYPE s32
typedef struct {
Vec3f normal;
f32 dist;
} Plane;
typedef struct {
s16 vtx[3];
s16 unk_06;
Vec3s normal;
s32 dist;
} CollisionPoly;
typedef struct {
Vec3f min;
Vec3f max;
s32 polyCount;
CollisionPoly* polys;
Vec3s* mesh;
} CollisionHeader; // size = 0x24
typedef struct {
Vec3f min;
Vec3f max;
s32 polyCount;
s16 (*polys)[3];
Vec3f* mesh;
} CollisionHeader2; // size = 0x24
typedef void (*TimerAction)(s32*, s32);
typedef struct {
@@ -315,17 +343,15 @@ typedef struct {
/* 0x10 */ Vec3f rot;
} Object; // size = 0x1C
typedef void (*ObjectFunc)(Object*);
typedef struct {
union {
/* 0x00 */ void* drawVoid; // Have the first option be a void type to silence warnings about the wrong type in the initialization of this object.
/* 0x00 */ void (*draw)(Object*); // argument must have object type.
/* 0x00 */ Gfx* drawGfx; //Can be dlist.
/* 0x00 */ union {
ObjectFunc draw;
Gfx* dList;
};
/* 0x00 */ u8 drawType;
union {
/* 0x08 */ void* actionVoid; // Have the first option be a void type to silence warnings about the wrong type in the initialization of this object.
/* 0x08 */ void (*action)(Object*); // argument must have object type. But it can be one of many different types of objects.
};
/* 0x08 */ ObjectFunc action; // argument must have object type.
/* 0x0C */ f32* unk_0C; // some sort of script?
/* 0x10 */ f32 unk_10; // z coordinate of something
/* 0x14 */ s16 unk_14; // can be -1, 0, 1