mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-24 15:07:09 -05:00
89 lines
1.9 KiB
C
89 lines
1.9 KiB
C
#ifndef GUARD_KANGASKHAN_STORAGE_H
|
|
#define GUARD_KANGASKHAN_STORAGE_H
|
|
|
|
#include "file_system.h"
|
|
#include "item.h"
|
|
#include "menu.h"
|
|
#include "text.h"
|
|
|
|
// size: 0x14C
|
|
struct KangaskhanStorageWork
|
|
{
|
|
/* 0x0 */ bool32 isAsleep;
|
|
/* 0x4 */ u32 currState;
|
|
/* 0x8 */ u32 fallbackState;
|
|
/* 0xC */ struct Item storedItem;
|
|
/* 0x10 */ u32 itemIndex;
|
|
/* 0x14 */ u8 id; // another id?
|
|
/* 0x18 */ u32 menuAction1;
|
|
/* 0x1C */ u32 menuAction2;
|
|
/* 0x20 */ u32 menuAction3;
|
|
struct MenuItem unk24[5];
|
|
u16 unk4C[5];
|
|
struct MenuStruct unk58;
|
|
u32 unkA8;
|
|
u32 unkAC;
|
|
u32 unkB0;
|
|
u32 unkB4;
|
|
u32 unkB8;
|
|
u32 unkBC;
|
|
struct UnkTextStruct2 *unkC0;
|
|
u32 unkC4;
|
|
u32 unkC8;
|
|
u8 unkCC[0xD4 - 0xCC];
|
|
u32 unkD4;
|
|
/* 0xD8 */ struct OpenedFile *faceFile;
|
|
/* 0xDC */ u8 *faceData;
|
|
u16 unkE0;
|
|
u16 unkE2;
|
|
u8 unkE4;
|
|
u8 unkE5;
|
|
u8 unkE6;
|
|
u8 unkE7;
|
|
struct OpenedFile **unkE8;
|
|
struct UnkTextStruct2 unkEC[4];
|
|
};
|
|
|
|
// size: 0x150
|
|
struct unkStruct_203B20C
|
|
{
|
|
/* 0x0 */ u32 state;
|
|
u8 unk4[4];
|
|
/* 0x8 */ struct Item item;
|
|
/* 0xC */ u32 itemIndex;
|
|
/* 0x10 */ u8 id;
|
|
/* 0x14 */ u32 menuAction1;
|
|
/* 0x18 */ u32 menuAction2;
|
|
/* 0x1C */ u32 menuAction3;
|
|
struct MenuItem unk20[8];
|
|
u16 unk60[8];
|
|
struct MenuStruct unk70;
|
|
u32 unkC0;
|
|
u32 unkC4;
|
|
u32 unkC8;
|
|
u32 unkCC;
|
|
u32 unkD0;
|
|
u32 unkD4;
|
|
struct UnkTextStruct2 *unkD8;
|
|
u32 unkDC;
|
|
u32 unkE0;
|
|
u8 fillE4[0xF0 - 0xE4];
|
|
struct UnkTextStruct2 unkF0[4];
|
|
};
|
|
|
|
enum KangaskhanStorageStates
|
|
{
|
|
KANGASKHAN_STORAGE_INIT = 0,
|
|
KANGASKHAN_STORAGE_MAIN_MENU = 1,
|
|
KANGASKHAN_STORAGE_EXIT = 4,
|
|
KANGASKHAN_STORAGE_NO_INV_ITEMS = 5,
|
|
KANGASKHAN_STORAGE_TOO_MANY_ITEMS = 6,
|
|
KANGASKHAN_STORAGE_IS_MONEY_USED_TM = 9,
|
|
};
|
|
|
|
u32 CreateKangaskhanStorage(bool32 isAsleep);
|
|
void DeleteKangaskhanStorage(void);
|
|
u32 KangaskhanStorageCallback(void);
|
|
|
|
#endif
|