pmd-red/include/friend_area.h

44 lines
1.2 KiB
C
Raw Normal View History

#ifndef GUARD_FRIEND_AREA_H
#define GUARD_FRIEND_AREA_H
// size: 0x8
typedef struct FriendAreaSettings
{
/* 0x0 */ s16 num_pokemon;
/* 0x2 */ u16 unlock_condition;
/* 0x4 */ u32 price;
} FriendAreaSettings;
// size: 0xC
typedef struct unkStruct_8092638
2023-07-28 05:51:26 +00:00
{
/* 0x0 */ s16 numPokemon;
s16 unk2;
/* 0x4 */ bool8 hasFriendArea;
s32 unk8;
} unkStruct_8092638;
2023-07-28 05:51:26 +00:00
extern bool8 *gFriendAreas;
2023-08-09 15:09:42 +00:00
bool8 *GetBoughtFriendAreas(void);
2023-09-09 04:31:17 +00:00
const u8 *GetFriendAreaDescription(u8 index);
2023-09-09 19:10:53 +00:00
const u8 *GetFriendAreaName(u8 index);
s32 GetFriendAreaPrice(u8 index);
2023-09-09 23:03:23 +00:00
bool8 GetFriendAreaStatus(u8 index);
u8 GetFriendAreaUnlockCondition(u8 index);
bool8 HasAllFriendAreas(void);
2023-09-04 05:32:49 +00:00
void InitializeFriendAreas(void);
void LoadFriendAreas(void);
2023-09-09 23:03:23 +00:00
u32 ReadSavedFriendAreas(u8 *, s32 size);
u32 SaveFriendAreas(u8 *, u32 size);
void UnlockFriendArea(u8 index);
2023-09-09 19:10:53 +00:00
u8 sub_80923D4(s32 target);
2023-09-04 05:32:49 +00:00
void sub_8092404(u8, u16 *, bool8, bool8);
2023-09-09 23:03:23 +00:00
void sub_809249C(u8 friendArea, bool8 clear);
void sub_8092558(u8 *buffer, u8 index);
2024-09-15 18:29:02 +00:00
void WriteFriendAreaName(u8 *buffer, u8 index, bool8 printPrice);
2023-09-09 23:03:23 +00:00
void sub_8092638(u8 friendArea, unkStruct_8092638 *, bool8 checkLeader, bool8 checkDungeon);
2023-09-04 05:32:49 +00:00
void sub_80926F8(u8, unkStruct_8092638 *, u8);
#endif // GUARD_FRIEND_AREA_H