mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-26 17:51:53 -04:00
Add more function and variable documentation
This commit is contained in:
@@ -22,6 +22,7 @@ struct s8008A6FC {
|
||||
/* 12 */ UNK_TYPE unk12;
|
||||
};
|
||||
|
||||
// TODO this should extend from z_Actor
|
||||
struct s800A5AC0 {
|
||||
/* 000 */ u8 pad0[28];
|
||||
/* 028 */ s16 unk28;
|
||||
@@ -104,6 +105,69 @@ typedef struct s800F4F54_s {
|
||||
/* 92152 */ u8 unk92152;
|
||||
} s800F4F54;
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ f32 x;
|
||||
/* 0x4 */ f32 y;
|
||||
/* 0x8 */ f32 z;
|
||||
} z_Vector3D;
|
||||
|
||||
struct z_Actor;
|
||||
|
||||
typedef void(*z_ActorFunc)(struct z_Actor*, void*);
|
||||
|
||||
typedef struct {
|
||||
/* 000 */ u8 pad0[4];
|
||||
/* 004 */ UNK_TYPE unk4;
|
||||
/* 008 */ u8 pad1[20];
|
||||
/* 028 */ s16 unk28;
|
||||
/* 030 */ u8 pad2[58];
|
||||
/* 088 */ z_Vector3D unk088; // scale?
|
||||
/* 100 */ u8 pad3[46];
|
||||
/* 146 */ s16 unk146;
|
||||
/* 148 */ u8 pad4[34];
|
||||
/* 182 */ u8 unk182;
|
||||
/* 183 */ u8 pad5[5];
|
||||
/* 188 */ u16 unk188; // or char
|
||||
/* 190 */ s16 unk190;
|
||||
/* 192 */ u8 pad6[60];
|
||||
/* 252 */ f32 unk252; // start of z_Vector3D?
|
||||
/* 256 */ f32 unk256;
|
||||
/* 260 */ f32 unk260;
|
||||
/* 264 */ u8 pad7[14];
|
||||
/* 278 */ u16 unk278;
|
||||
/* 280 */ u8 pad8[36];
|
||||
/* 316 */ z_ActorFunc drawFunc;
|
||||
/* 320 */ u8 pad9[4];
|
||||
// TODO figure out what size this is
|
||||
} z_Actor;
|
||||
|
||||
typedef struct s80BD5530_s {
|
||||
/* 000000 */ u8 pad[100484];
|
||||
/* 100484 */ UNK_TYPE unk100484;
|
||||
} z_GlobalContext;
|
||||
|
||||
typedef struct {
|
||||
u32 cont : 1;
|
||||
u32 type : 4;
|
||||
u32 offset : 11;
|
||||
u32 value : 16;
|
||||
} z_ActorCompInitEntry;
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ s16 id;
|
||||
/* 0x02 */ u8 type; // Classifies actor and determines when actor will execute
|
||||
/* 0x03 */ u8 room; // Room instance was spawned in. If value set to FF in
|
||||
// rom, instance does not despawn when swapping rooms
|
||||
/* 0x04 */ s32 flags; // unknown
|
||||
/* 0x08 */ s16 objectId; // Possibly it's primary object dependency
|
||||
/* 0x0A */ // Padding
|
||||
/* 0x0C */ u32 instanceSize;
|
||||
/* 0x10 */ z_ActorFunc init; // Constructor
|
||||
/* 0x14 */ z_ActorFunc fini; // Destructor
|
||||
/* 0x18 */ z_ActorFunc main; // Main Update Function
|
||||
/* 0x1C */ z_ActorFunc draw; // Draw function
|
||||
} z_ActorInit;
|
||||
|
||||
// TODO everything past here should be placed in an appropiate libultra header
|
||||
|
||||
typedef long Mtx_t[4][4];
|
||||
|
||||
Reference in New Issue
Block a user