mirror of
https://github.com/zeldaret/tmc
synced 2026-08-17 13:30:12 -04:00
struct_02002A40 -> structures.h
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "entity.h"
|
||||
#include "position.h"
|
||||
#include "link.h"
|
||||
#include "structures.h"
|
||||
|
||||
// Identified - to be sorted into header files
|
||||
extern u32 Random(void);
|
||||
@@ -205,4 +206,17 @@ extern void sub_0807A108(void);
|
||||
extern void sub_0801766C(Entity*);
|
||||
extern void sub_08004168(Entity*);
|
||||
extern u32 sub_08052638(u32);
|
||||
extern void sub_0805616C();
|
||||
extern u32 sub_0807CF08(u32, u8*);
|
||||
extern void sub_0807CF48(u32);
|
||||
extern u32 sub_0807CF10(u8 *);
|
||||
extern void sub_08056208();
|
||||
extern void sub_08050384();
|
||||
extern void sub_080B1520(u32);
|
||||
extern struct_0807D1C4* sub_0807D1C4(u32);
|
||||
extern u32 sub_0807D24C(u32, char*, u32);
|
||||
extern void sub_0807CF68(u32);
|
||||
extern void sub_0807D20C(u32, char*, u32);
|
||||
extern u32 sub_0807CF88(u32, u8*);
|
||||
extern u32 sub_0807D008(u32, void*);
|
||||
#endif
|
||||
@@ -45,7 +45,6 @@ extern UI gUnk_02032EC0;
|
||||
|
||||
extern s32 sub_08055F70();
|
||||
extern s32 sub_080A3204(s32);
|
||||
extern s32 sub_0805616C(s32);
|
||||
extern s32 sub_0807CE90(s32);
|
||||
extern s32 sub_080560B8(s32);
|
||||
extern void sub_08056208(s32);
|
||||
|
||||
+2
-1
@@ -27,7 +27,8 @@ typedef struct {
|
||||
u8 overlayType;
|
||||
u8 storyPanelIndex;
|
||||
u16 transitionTimer;
|
||||
u8 fillerA[0x6];
|
||||
u16 field_0xa;
|
||||
u8 field_0xc[0x4];
|
||||
u8 unk10[2];
|
||||
u8 field_0x12;
|
||||
u8 unk13;
|
||||
|
||||
@@ -173,22 +173,5 @@ extern void NPC58_Head(Entity*);
|
||||
extern u32 UpdateFuseInteraction(Entity*);
|
||||
extern void ShowNPCDialogue(Entity*, u32*);
|
||||
|
||||
typedef struct {
|
||||
/*0x000*/ u8 filler0[0x6];
|
||||
/*0x006*/ u8 unk6;
|
||||
/*0x007*/ u8 unk7;
|
||||
/*0x008*/ u8 unk8;
|
||||
/*0x009*/ u8 field_0x9[0x34];
|
||||
/*0x040*/ u32 windcrests;
|
||||
/*0x044*/ u8 filler44[0xC];
|
||||
/*0x050*/ u32 unk50;
|
||||
/*0x054*/ u8 filler54[0x54];
|
||||
/*0x0A8*/ Stats stats;
|
||||
/*0x0D0*/ u8 filler4[0x3c0];
|
||||
/*0x490*/ u32 unk490;
|
||||
} struct_02002A40;
|
||||
|
||||
extern struct_02002A40 gUnk_02002A40;
|
||||
|
||||
|
||||
#endif
|
||||
+37
-8
@@ -13,21 +13,48 @@ typedef struct {
|
||||
u8 gameLanguage;
|
||||
} struct_02000000;
|
||||
|
||||
extern struct_02000000 gUnk_02000000;
|
||||
typedef struct {
|
||||
u16 field_0x0;
|
||||
u16 field_0x2;
|
||||
u16 field_0x4;
|
||||
u16 field_0x6;
|
||||
u16 field_0x8;
|
||||
u16 field_0xa;
|
||||
} struct_0807D1C4;
|
||||
|
||||
#define gUnk_02000000 ((struct_02000000*)(0x2000000))
|
||||
//extern struct_02000000 gUnk_02000000;
|
||||
|
||||
typedef struct {
|
||||
u16 frameCount; // regular frame count? does anything reset it?
|
||||
/*0x000*/ u8 filler0[0x6];
|
||||
/*0x006*/ u8 unk6;
|
||||
/*0x007*/ u8 unk7;
|
||||
/*0x008*/ u8 unk8;
|
||||
/*0x009*/ u8 field_0x9[0x34];
|
||||
/*0x040*/ u32 windcrests;
|
||||
/*0x044*/ u8 filler44[0xC];
|
||||
/*0x050*/ u32 unk50;
|
||||
/*0x054*/ u8 filler54[0x54];
|
||||
/*0x0A8*/ Stats stats;
|
||||
/*0x0D0*/ u8 filler4[0x3c0];
|
||||
/*0x490*/ u32 unk490;
|
||||
} struct_02002A40;
|
||||
|
||||
extern struct_02002A40 gUnk_02002A40;
|
||||
|
||||
typedef struct {
|
||||
u16 frameCount; // regular frame count? does anything reset it?
|
||||
u8 field_0x2[6];
|
||||
bool8 transitioningOut;
|
||||
u8 transitionType; // transition when changing areas
|
||||
u8 field_0xa;
|
||||
u8 field_0xa; // seems to be a tile type
|
||||
u8 field_0xb;
|
||||
u8 areaID;
|
||||
u8 roomID;
|
||||
u8 animState;
|
||||
u8 playerState;
|
||||
u8 field_0xf;
|
||||
Coords startPos;
|
||||
u16 collisionLayer;
|
||||
Coords playerStartPos;
|
||||
u16 playerLayer;
|
||||
u8 field_0x14[0xa];
|
||||
u16 field_0x20;
|
||||
u16 field_0x22;
|
||||
@@ -41,6 +68,8 @@ typedef struct {
|
||||
u16 field_0x46;
|
||||
u16 field_0x48;
|
||||
u16 field_0x4a;
|
||||
u8 field_0x4c[0x60];
|
||||
u16 field_0xac;
|
||||
} ScreenTransition;
|
||||
|
||||
extern ScreenTransition gScreenTransition;
|
||||
@@ -53,9 +82,9 @@ typedef struct {
|
||||
u8 field_0xa;
|
||||
u8 areaID;
|
||||
u8 roomID;
|
||||
u8 collisionLayer;
|
||||
u8 playerLayer;
|
||||
u8 field_0xe;
|
||||
u8 playerAnimState;
|
||||
u8 playerState;
|
||||
u16 transitionSFX;
|
||||
} ScreenTransitionData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user