pokeemerald/include/pokenav.h

32 lines
798 B
C
Raw Normal View History

2017-11-23 02:10:35 +01:00
#ifndef GUARD_POKENAV_H
#define GUARD_POKENAV_H
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);
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
// pokenav_unk_1.c
u32 sub_81C9298(void);
2017-11-23 02:10:35 +01:00
#endif //GUARD_POKENAV_H