diff options
author | Phlosioneer <mattmdrr2@gmail.com> | 2019-04-07 14:40:35 -0400 |
---|---|---|
committer | Phlosioneer <mattmdrr2@gmail.com> | 2019-04-07 14:40:35 -0400 |
commit | 0dc73b0b3a378f4af253691a7b2694b9faa2fbdf (patch) | |
tree | a1ac5b4dd0b0ac89b28277f1d883af3f5201e85e /include | |
parent | d84d94e29a1424dd1d12ff821957bb6b1bc847d6 (diff) |
Break up pokenav into subfiles
The files are separated based on the pokenav resources substruct
ID they use.
Diffstat (limited to 'include')
-rw-r--r-- | include/pokenav.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/pokenav.h b/include/pokenav.h index 4e1648c93..d1bdbb2e9 100644 --- a/include/pokenav.h +++ b/include/pokenav.h @@ -1,6 +1,28 @@ #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); + 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 #endif //GUARD_POKENAV_H |