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-08-23 01:39:45 +02:00
|
|
|
#include "enums.h"
|
2020-07-18 02:47:33 +02:00
|
|
|
|
2020-08-16 05:19:00 +02:00
|
|
|
extern UiStatus gUIStatus;
|
|
|
|
extern PlayerData gPlayerData;
|
2020-08-23 01:24:51 +02:00
|
|
|
extern ActionState gPlayerActionState;
|
|
|
|
extern PlayerAnim gPlayerAnimation;
|
2020-08-16 05:19:00 +02:00
|
|
|
extern PlayerStatus gPlayerStatus;
|
2020-09-22 05:10:53 +02:00
|
|
|
extern PlayerStatus* gPlayerStatusPtr;
|
2020-08-16 05:19:00 +02:00
|
|
|
extern GameStatus* gGameStatusPtr[1];
|
2020-09-14 01:03:22 +02:00
|
|
|
extern s32 gRandSeed;
|
2020-08-16 16:19:33 +02:00
|
|
|
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-09-22 02:56:17 +02:00
|
|
|
extern BattleStatus gBattleStatus;
|
|
|
|
|
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-09-18 22:57:52 +02:00
|
|
|
extern s32 gStaticScriptCounter;
|
|
|
|
extern s32 D_802D9CA4;
|
|
|
|
extern s32 gNumScripts;
|
|
|
|
extern s32 D_802DAC98;
|
|
|
|
|
2020-09-08 15:06:17 +02:00
|
|
|
extern s32 gScriptListCount;
|
2020-09-06 17:53:48 +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];
|
2020-09-25 23:18:09 +02:00
|
|
|
extern UNK_TYPE*** gCurrentDynamicEntityListPtr;
|
|
|
|
|
|
|
|
extern Npc* gWorldNpcList[64];
|
|
|
|
extern Npc* gBattleNpcList[64];
|
|
|
|
extern Npc** gCurrentNpcListPtr[64];
|
2020-08-17 14:40:21 +02:00
|
|
|
|
|
|
|
extern Shadow* gWorldShadowList[60];
|
|
|
|
extern Shadow* gBattleShadowList[60];
|
|
|
|
extern Shadow** gCurrentShadowListPtr[60];
|
|
|
|
|
2020-08-20 00:48:15 +02:00
|
|
|
extern Camera gCameras[4];
|
2020-09-06 17:53:48 +02:00
|
|
|
extern s32 gCurrentCameraID;
|
2020-08-20 00:48:15 +02:00
|
|
|
|
2020-08-15 00:05:05 +02:00
|
|
|
extern f32 gGlobalTimeSpace;
|
|
|
|
|
2020-08-24 03:40:11 +02:00
|
|
|
extern Npc* gPlayerNpcPtr;
|
2020-08-23 01:24:51 +02:00
|
|
|
|
2020-08-12 20:48:51 +02:00
|
|
|
extern s8 D_800A0900;
|
2020-09-06 17:53:48 +02:00
|
|
|
extern EncounterStatus gCurrentEncounter;
|
2020-09-27 03:02:29 +02:00
|
|
|
extern s16 D_80151308;
|
|
|
|
extern s32 D_80151310;
|
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;
|
2020-09-25 23:18:09 +02:00
|
|
|
extern s32 D_8010CD20;
|
2020-09-26 04:49:59 +02:00
|
|
|
extern s32 D_8010EF08;
|
2020-09-25 23:18:09 +02:00
|
|
|
extern s32 D_8010F094; // player shadow index?
|
2020-08-12 20:48:51 +02:00
|
|
|
extern s32 D_801595A0;
|
2020-08-30 10:37:51 +02:00
|
|
|
extern s16 D_80159AE2;
|
|
|
|
extern s16 D_80159AE4;
|
2020-08-22 09:43:30 +02:00
|
|
|
extern BackgroundHeader gBackgroundImage;
|
2020-07-18 02:47:33 +02:00
|
|
|
|
2020-08-16 05:19:00 +02:00
|
|
|
extern PrintContext* gCurrentPrintContext;
|
2020-09-26 03:51:54 +02:00
|
|
|
extern s32 D_802DB264;
|
2020-08-16 05:19:00 +02:00
|
|
|
extern PrintContext* D_802DB268;
|
2020-08-15 23:51:44 +02:00
|
|
|
|
2020-08-13 07:03:47 +02:00
|
|
|
// Triggers
|
2020-08-19 02:23:52 +02:00
|
|
|
extern s16 gTriggerCount;
|
|
|
|
extern Trigger* gTriggerList1[64];
|
|
|
|
extern Trigger* gTriggerList2[64];
|
|
|
|
extern Trigger** gCurrentTriggerListPtr[64];
|
2020-08-13 07:03:47 +02:00
|
|
|
|
2020-08-12 03:59:46 +02:00
|
|
|
extern u16 gMapTransitionAlpha;
|
2020-08-11 01:20:30 +02:00
|
|
|
extern u16 D_800A0942;
|
|
|
|
extern s16 D_800A0944;
|
|
|
|
|
2020-08-11 23:38:21 +02:00
|
|
|
|
2020-09-06 17:53:48 +02:00
|
|
|
extern s32 gGameState;
|
2020-08-12 22:53:01 +02:00
|
|
|
extern s32 D_8009A650[1];
|
|
|
|
|
2020-09-27 20:13:50 +02:00
|
|
|
// curtains
|
|
|
|
extern f32 D_8009BA90;
|
|
|
|
extern f32 D_8009BA94; // curtain scale goal
|
|
|
|
extern f32 D_8009BA98;
|
|
|
|
extern f32 D_8009BA9C; // curtain fade goal
|
|
|
|
extern s32 D_8009BAA0; // curtain draw callback
|
|
|
|
|
2020-08-11 23:38:21 +02:00
|
|
|
extern s16 gCurrentDoorSoundsSet;
|
|
|
|
|
2020-08-10 23:35:37 +02:00
|
|
|
extern UNK_TYPE D_800E92D8;
|
|
|
|
extern UNK_TYPE D_80147474;
|
2020-08-12 03:01:33 +02:00
|
|
|
extern UNK_TYPE D_80147574;
|
2020-08-10 23:35:37 +02:00
|
|
|
extern UNK_TYPE D_80109270;
|
|
|
|
extern UNK_TYPE D_80108558;
|
2020-08-20 20:43:45 +02:00
|
|
|
extern UNK_TYPE D_8010F250; // play_sound state struct?
|
|
|
|
extern s8 D_8010EBB0;
|
2020-08-10 23:35:37 +02:00
|
|
|
|
2020-09-19 17:16:02 +02:00
|
|
|
extern SaveData gCurrentSaveFile;
|
|
|
|
|
2020-09-27 03:02:29 +02:00
|
|
|
extern s32 D_802D9CA4;
|
2020-09-19 17:16:02 +02:00
|
|
|
extern u32* gMapFlags;
|
|
|
|
extern u32* gMapVars;
|
2020-09-27 03:02:29 +02:00
|
|
|
extern s32 gNumScripts;
|
|
|
|
|
|
|
|
extern f32 D_80286540;
|
2020-09-18 22:07:15 +02:00
|
|
|
|
2020-07-18 02:47:33 +02:00
|
|
|
#endif
|