1
0
mirror of https://github.com/blawar/ooot.git synced 2024-07-04 18:13:37 +00:00
ooot/include/z_select.h

37 lines
1.1 KiB
C
Raw Normal View History

2021-12-27 19:23:03 +00:00
#pragma once
#include "view.h"
struct SelectContext;
2022-02-12 19:50:06 +00:00
struct SceneSelectEntry {
/* 0x00 */ const char* name;
2021-12-27 19:23:03 +00:00
/* 0x04 */ void (*loadFunc)(struct SelectContext*, s32);
/* 0x08 */ s32 entranceIndex;
2022-02-12 19:50:06 +00:00
}; // size = 0xC
2021-12-27 19:23:03 +00:00
2022-02-12 19:50:06 +00:00
struct SelectContext {
2021-12-27 19:23:03 +00:00
/* 0x0000 */ GameState state;
/* 0x00A8 */ View view;
/* 0x01D0 */ s32 count;
/* 0x01D4 */ SceneSelectEntry* scenes;
/* 0x01D8 */ s32 currentScene;
/* 0x01DC */ s32 pageDownIndex; // Index of pageDownStops
/* 0x01E0 */ s32 pageDownStops[7];
/* 0x01FC */ char unk_1FC[0x0C];
/* 0x0208 */ s32 opt;
/* 0x020C */ s32 topDisplayedScene; // The scene 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;
2022-02-12 19:50:06 +00:00
}; // size = 0x240
2021-12-27 19:23:03 +00:00
void Select_Init(GameState* thissx);
void Select_Destroy(GameState* thissx);