papermario/include/variables.h

84 lines
2.2 KiB
C
Raw Normal View History

2020-07-18 02:47:33 +02:00
#ifndef _VARIABLES_H_
#define _VARIABLES_H_
#include "ultra64.h"
#include "common_structs.h"
2020-08-10 23:35:37 +02:00
#include "types.h"
2020-07-18 02:47:33 +02:00
2020-08-16 05:19:00 +02:00
extern UiStatus gUIStatus;
extern PlayerData gPlayerData;
extern PlayerStatus gPlayerStatus;
extern GameStatus* gGameStatusPtr[1];
extern StaticItem gItemTable[364];
2020-08-17 14:40:21 +02:00
extern s16 gMainGameState; /* 0 = battle, 1 = pause, 2 = world */
extern UNK_FUN_PTR(gCurrentUpdateFunction);
2020-08-14 16:25:33 +02:00
2020-08-16 07:13:03 +02:00
extern ScriptInstance* gWorldScriptList[128];
extern ScriptInstance* gBattleScriptList[128];
extern ScriptInstance** gCurrentScriptListPtr[128];
2020-08-14 16:25:33 +02:00
2020-08-17 14:40:21 +02:00
extern s32 gScriptIdList[128];
extern s32 gScriptIndexList[128];
extern Model* gWorldModelList[256];
extern Model* gBattleModelList[256];
extern Model** gCurrentModelListPtr[256];
extern u32* gWorldModelSpecialDls[32];
extern u32* gBattleModelSpecialDls[32];
extern u32** gCurrentModelSpecialDlsPtr[32];
extern Entity* gWorldEntityList[30];
extern Entity* gBattleEntityList[30];
extern Entity** gCurrentEntityListPtr[30];
extern UNK_TYPE* gWorldDynamicEntityList[16];
extern UNK_TYPE* gBattleDynamicEntityList[16];
extern UNK_TYPE** gCurrentDynamicEntityListPtr[16];
extern Shadow* gWorldShadowList[60];
extern Shadow* gBattleShadowList[60];
extern Shadow** gCurrentShadowListPtr[60];
extern f32 gGlobalTimeSpace;
extern s8 D_800A0900;
2020-07-18 02:47:33 +02:00
extern s16* D_80151328;
2020-08-09 06:20:53 +02:00
extern s16 D_8010CD10;
extern s16 D_8010CD12;
extern s32 D_801595A0;
2020-08-14 06:25:13 +02:00
extern char gCloudyFlowerFieldsBg[]; // "fla_bg"
extern char gSunnyFlowerFieldsBg[]; // "flb_bg"
2020-08-16 05:19:00 +02:00
extern BackgroundHeader gBackgroundImage;
extern s8 D_8014F12F;
2020-07-18 02:47:33 +02:00
2020-08-16 05:19:00 +02:00
extern PrintContext* gCurrentPrintContext;
extern PrintContext* D_802DB268;
2020-08-13 07:03:47 +02:00
// Triggers
/* 0x80151334 */ extern s16 gTriggerCount;
2020-08-16 05:19:00 +02:00
/* 0x80159190 */ extern Trigger gTriggerList1[64];
/* 0x80159290 */ extern Trigger gTriggerList2[64];
/* 0x80159390 */ extern Trigger** gCurrentTriggerListPtr[64];
2020-08-13 07:03:47 +02:00
extern u16 gMapTransitionAlpha;
extern u16 D_800A0942;
extern s16 D_800A0944;
extern s16 D_80151308;
extern s32 D_8009A650[1];
extern s16 gCurrentDoorSoundsSet;
2020-08-10 23:35:37 +02:00
extern UNK_TYPE D_800E92D8;
extern UNK_TYPE D_80147474;
extern UNK_TYPE D_80147574;
2020-08-10 23:35:37 +02:00
extern UNK_TYPE D_80109270;
extern UNK_TYPE D_80108558;
extern u16 D_800A0940;
extern u16 D_800A0942;
extern s16 D_800A0944;
2020-08-10 23:35:37 +02:00
2020-07-18 02:47:33 +02:00
#endif