mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-15 12:24:39 +00:00
Create headers for Game States (#2482)
* make headers for gamestates * fixes * fixes 2 * bss
This commit is contained in:
parent
4cfb5f05a0
commit
2e4d7a1101
35 changed files with 300 additions and 199 deletions
41
include/map_select_state.h
Normal file
41
include/map_select_state.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef MAP_SELECT_STATE_H
|
||||
#define MAP_SELECT_STATE_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "z64game.h"
|
||||
#include "z64view.h"
|
||||
|
||||
struct MapSelectState;
|
||||
|
||||
typedef struct MapSelectEntry {
|
||||
/* 0x00 */ char* name;
|
||||
/* 0x04 */ void (*loadFunc)(struct MapSelectState*, s32);
|
||||
/* 0x08 */ s32 entranceIndex;
|
||||
} MapSelectEntry; // size = 0xC
|
||||
|
||||
typedef struct MapSelectState {
|
||||
/* 0x0000 */ GameState state;
|
||||
/* 0x00A8 */ View view;
|
||||
/* 0x01D0 */ s32 count;
|
||||
/* 0x01D4 */ MapSelectEntry* entries;
|
||||
/* 0x01D8 */ s32 currentEntry;
|
||||
/* 0x01DC */ s32 pageDownIndex; // Index of pageDownStops
|
||||
/* 0x01E0 */ s32 pageDownStops[7];
|
||||
/* 0x01FC */ char unk_1FC[0x0C];
|
||||
/* 0x0208 */ s32 opt;
|
||||
/* 0x020C */ s32 topDisplayedEntry; // The entry which is currently at the top of the screen
|
||||
/* 0x0210 */ char unk_210[0x0C];
|
||||
/* 0x021C */ s32 verticalInputAccumulator;
|
||||
/* 0x0220 */ s32 verticalInput;
|
||||
/* 0x0224 */ s32 timerUp;
|
||||
/* 0x0228 */ s32 timerDown;
|
||||
/* 0x022C */ s32 lockUp;
|
||||
/* 0x0230 */ s32 lockDown;
|
||||
/* 0x0234 */ s32 unk_234; // unused
|
||||
/* 0x0238 */ u8* staticSegment;
|
||||
} MapSelectState; // size = 0x240
|
||||
|
||||
void MapSelect_Init(GameState* thisx);
|
||||
void MapSelect_Destroy(GameState* thisx);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue