2021-07-07 16:39:34 +00:00
|
|
|
#ifndef GUARD_FELICITY_BANK_H
|
|
|
|
#define GUARD_FELICITY_BANK_H
|
2021-05-15 23:59:55 +00:00
|
|
|
|
|
|
|
#include "file_system.h"
|
2021-06-18 22:56:20 +00:00
|
|
|
#include "menu.h"
|
2023-09-21 02:26:35 +00:00
|
|
|
#include "structs/str_text.h"
|
2023-09-11 03:00:41 +00:00
|
|
|
|
|
|
|
#define FELICITY_BANK_ACTION_WITHDRAW 0
|
|
|
|
#define FELICITY_BANK_ACTION_DEPOSIT 1
|
2021-05-15 23:59:55 +00:00
|
|
|
|
2023-07-22 05:38:36 +00:00
|
|
|
// size: 0x108
|
2023-09-11 03:00:41 +00:00
|
|
|
typedef struct FelicityBankWork
|
2021-05-15 23:59:55 +00:00
|
|
|
{
|
2023-09-11 23:23:20 +00:00
|
|
|
/* 0x0 */ u32 mode; // Corresponds to the enum: FelicityBankMode
|
2023-07-22 23:14:33 +00:00
|
|
|
/* 0x4 */ s32 currState;
|
|
|
|
/* 0x8 */ u32 fallbackState;
|
|
|
|
/* 0xC */ u32 chosenAmount;
|
|
|
|
/* 0x10 */ u32 menuAction;
|
2023-09-02 05:46:26 +00:00
|
|
|
MenuItem unk14[8];
|
2021-06-18 22:56:20 +00:00
|
|
|
u16 unk54[8];
|
2023-09-12 12:27:10 +00:00
|
|
|
unkStructFor8013AA0 unk64;
|
2023-09-02 05:46:26 +00:00
|
|
|
/* 0x94 */ OpenedFile *faceFile;
|
2021-05-15 23:59:55 +00:00
|
|
|
/* 0x98 */ u8 *faceData;
|
|
|
|
u16 unk9C;
|
|
|
|
u16 unk9E;
|
|
|
|
u8 unkA0;
|
|
|
|
u8 unkA1;
|
|
|
|
u8 unkA2;
|
|
|
|
u8 unkA3;
|
2023-09-02 05:46:26 +00:00
|
|
|
OpenedFile **unkA4;
|
|
|
|
UnkTextStruct2 unkA8[4];
|
2023-09-11 03:00:41 +00:00
|
|
|
} FelicityBankWork;
|
2023-07-23 03:11:28 +00:00
|
|
|
|
2023-09-11 03:00:41 +00:00
|
|
|
bool8 CreateFelicityBank(s32 mode);
|
|
|
|
void DestroyFelicityBank(void);
|
|
|
|
void DrawTeamMoneyBox(u32);
|
|
|
|
u32 FelicityBankCallback(void);
|
2023-08-05 15:32:30 +00:00
|
|
|
|
2023-09-11 03:00:41 +00:00
|
|
|
#endif // GUARD_FELICITY_BANK_H
|