2017-11-23 02:10:35 +01:00
|
|
|
#ifndef GUARD_POKENAV_H
|
|
|
|
#define GUARD_POKENAV_H
|
|
|
|
|
2019-04-07 20:40:35 +02:00
|
|
|
typedef u32 (*LoopedTask)(s32 state);
|
|
|
|
|
|
|
|
// Return values of LoopedTask functions.
|
|
|
|
#define LT_INC_AND_PAUSE 0
|
|
|
|
#define LT_INC_AND_CONTINUE 1
|
|
|
|
#define LT_PAUSE 2
|
|
|
|
#define LT_CONTINUE 3
|
|
|
|
#define LT_FINISH 4
|
|
|
|
#define LT_SET_STATE(newState) (newState + 5)
|
|
|
|
|
|
|
|
// pokenav.c
|
|
|
|
extern u32 sub_81C99D4(void);
|
|
|
|
|
2019-03-02 09:18:08 +01:00
|
|
|
void CB2_InitPokeNav(void);
|
2019-04-07 20:40:35 +02:00
|
|
|
u32 CreateLoopedTask(LoopedTask loopedTask, u32 priority);
|
|
|
|
bool32 FuncIsActiveLoopedTask(LoopedTask func);
|
|
|
|
void *GetSubstructPtr(u32 index);
|
|
|
|
void FreePokenavSubstruct(u32 index);
|
|
|
|
void *AllocSubstruct(u32 index, u32 size);
|
|
|
|
void Pokenav_AllocAndLoadPalettes(const struct SpritePalette *palettes);
|
|
|
|
bool32 IsLoopedTaskActive(u32 taskId);
|
|
|
|
|
|
|
|
// pokenav_match_call_ui.c
|
2017-11-23 02:10:35 +01:00
|
|
|
|
2019-04-08 04:42:31 +02:00
|
|
|
// pokenav_unk_1.c
|
|
|
|
u32 sub_81C9298(void);
|
|
|
|
|
2017-11-23 02:10:35 +01:00
|
|
|
#endif //GUARD_POKENAV_H
|