mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-24 23:17:03 -05:00
40 lines
929 B
C
40 lines
929 B
C
#ifndef GUARD_FRIEND_AREA_H
|
|
#define GUARD_FRIEND_AREA_H
|
|
|
|
struct FriendAreaSettings
|
|
{
|
|
s16 num_pokemon;
|
|
u16 unlock_condition;
|
|
u32 price;
|
|
};
|
|
|
|
struct unkStruct_8092638
|
|
{
|
|
/* 0x0 */ s16 numPokemon;
|
|
s16 unk2;
|
|
/* 0x4 */ bool8 hasFriendArea;
|
|
u8 fill5[3];
|
|
s32 unk8;
|
|
};
|
|
|
|
extern bool8 *gFriendAreas;
|
|
|
|
void LoadFriendAreas(void);
|
|
bool8 *GetBoughtFriendAreas(void);
|
|
void InitializeFriendAreas(void);
|
|
u8 sub_80923D4(s32 target);
|
|
bool8 HasAllFriendAreas(void);
|
|
bool8 GetFriendAreaStatus(u8 index);
|
|
void UnlockFriendArea(u8 index);
|
|
u8 *GetFriendAreaDescription(u8 index);
|
|
u8 GetFriendAreaUnlockCondition(u8 index);
|
|
s32 GetFriendAreaPrice(u8 index);
|
|
const char *GetFriendAreaName(u8 index);
|
|
void sub_809249C(u8 friendArea, u8 clear);
|
|
void sub_8092638(u8 friendArea, struct unkStruct_8092638 *param_2, u8 param_3, u8 param_4);
|
|
|
|
u32 SaveFriendAreas(u8 *r0, u32 r1);
|
|
u32 ReadSavedFriendAreas(u8 *r0, s32 r1);
|
|
|
|
#endif
|