diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-11-13 11:27:11 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-11-13 11:27:11 -0500 |
commit | ec051575683a781d912ded5837936f409057539e (patch) | |
tree | 49aed161a5f560fa70688df87461040ca457e30b /include | |
parent | 3b91d8fdaf2a1e13c4af938dfb867d407ccb280f (diff) |
Move pokenav list item union out of list struct
Diffstat (limited to 'include')
-rw-r--r-- | include/pokenav.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/pokenav.h b/include/pokenav.h index 254f9c7f7..68c33bf7c 100644 --- a/include/pokenav.h +++ b/include/pokenav.h @@ -6,6 +6,7 @@ #include "pokemon_storage_system.h" typedef u32 (*LoopedTask)(s32 state); +typedef void (*PokenavListItemBufferFunc)(struct PokenavListItem *, u8 *); struct PokenavMonListItem { @@ -21,12 +22,17 @@ struct PokenavMatchCallEntry u16 headerId; }; -struct PokenavListTemplate +struct PokenavListItem { union { - struct PokenavMonListItem *monList; - struct PokenavMatchCallEntry *matchCallEntries; - } list; + struct PokenavMonListItem mon; + struct PokenavMatchCallEntry call; + } item; +}; + +struct PokenavListTemplate +{ + struct PokenavListItem * list; u16 count; u16 unk6; u8 unk8; @@ -36,10 +42,7 @@ struct PokenavListTemplate u8 maxShowed; u8 fillValue; u8 fontId; - union { - void (*bufferMonItemFunc)(struct PokenavMonListItem *, u8 *); - void (*bufferMatchCallItemFunc)(struct PokenavMatchCallEntry *, u8 *); - } listFunc; + PokenavListItemBufferFunc bufferItemFunc; void (*unk14)(u16 a0, u32 a1, u32 a2); }; |