Consolidate pokemon summary struct def/decl files

This commit is contained in:
RavePossum
2024-10-28 12:03:53 -04:00
parent 0cb2809bf3
commit 4cdebe2804
33 changed files with 172 additions and 207 deletions

View File

@@ -6,7 +6,6 @@
#include "struct_decls/struct_0202B370_decl.h"
#include "struct_decls/struct_0207AE68_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0200C738.h"
#include "struct_defs/struct_0203E0FC.h"
@@ -29,6 +28,7 @@
#include "message.h"
#include "overlay_manager.h"
#include "pokemon.h"
#include "pokemon_summary_app.h"
#include "sprite_resource.h"
#include "strbuf.h"
#include "string_list.h"

View File

@@ -1,13 +1,170 @@
#ifndef POKEPLATINUM_UNK_0208C324_H
#define POKEPLATINUM_UNK_0208C324_H
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/pokemon_summary_app.h"
#include "constants/moves.h"
#include "struct_decls/cell_actor_data.h"
#include "struct_decls/pokemon_animation_sys_decl.h"
#include "struct_decls/sprite_decl.h"
#include "struct_decls/struct_0200C440_decl.h"
#include "struct_decls/struct_0200C6E4_decl.h"
#include "struct_decls/struct_0200C704_decl.h"
#include "struct_defs/archived_poke_sprite_data.h"
#include "struct_defs/chatot_cry.h"
#include "struct_defs/sprite_animation_frame.h"
#include "struct_defs/struct_02091850.h"
#include "bg_window.h"
#include "camera.h"
#include "cell_actor.h"
#include "game_options.h"
#include "message.h"
#include "narc.h"
#include "pokemon.h"
#include "pokemon_summary_app.h"
#include "savedata.h"
#include "strbuf.h"
#include "string_template.h"
#include "trainer_info.h"
typedef struct PokemonSummary {
void *monData; //!< Pointer to generic Pokemon data
Options *options; // unk_04
const u16 *OTName; // unk_08
u32 OTID; // unk_0C
u8 OTGender; // unk_10
u8 dataType; // unk_11
u8 mode; // unk_12
u8 max; // unk_13
u8 pos; // unk_14
u8 pageFlag; // unk_15
u8 selectedSlot; // unk_16
u8 returnMode; // unk_17
u16 move; // unk_18
u8 padding_1A[2];
u32 dexMode; // unk_1C
void *ribbons; // unk_20
void *poffin; // unk_24
ChatotCry *chatotCry; // unk_28
BOOL contest; // unk_2C
} PokemonSummary;
typedef struct PokemonSummaryAppData {
Strbuf *speciesName;
Strbuf *nickname;
Strbuf *OTName;
u16 species;
u16 heldItem;
u8 type1;
u8 type2;
u8 level : 7;
u8 showGender : 1;
u8 gender : 2;
u8 caughtBall : 6;
u32 OTID;
u32 curExp;
u32 curLevelExp;
u32 nextLevelExp;
u16 curHP;
u16 maxHP;
u16 attack;
u16 defense;
u16 spAttack;
u16 spDefense;
u16 speed;
u8 ability;
u8 nature;
u16 moves[LEARNED_MOVES_MAX];
u8 curPP[LEARNED_MOVES_MAX];
u8 maxPP[LEARNED_MOVES_MAX];
u8 OTGender;
u8 cool;
u8 beauty;
u8 cute;
u8 smart;
u8 tough;
u8 sheen;
u8 preferredFlavor;
u16 markings;
u16 form;
u32 status : 28;
u32 isEgg : 1;
u32 isShiny : 1;
u32 pokerus : 2;
u32 ribbons[4];
} PokemonSummaryAppData;
typedef struct PokemonSummaryAppSpriteData {
Camera *camera;
void *spriteManager;
SpriteAnimationFrame frames[MAX_ANIMATION_FRAMES];
PokemonAnimationSys *animationSys;
Sprite *sprite;
BOOL flip;
} PokemonSummaryAppSpriteData;
typedef struct PokemonSummaryApp {
BgConfig *bgl;
Window staticWindows[36];
Window *extraWindows;
u32 numExtraWindows;
PokemonSummary *data;
PokemonSummaryAppData monData;
PokemonSummaryAppSpriteData monSpriteData;
UnkStruct_02091850 unk_2F0[4];
UnkStruct_02091850 unk_350[4];
UnkStruct_02091850 unk_3B0[4];
u32 unk_410;
SpriteRenderer *renderer;
SpriteGfxHandler *gfxHandler;
CellActor *unk_41C[77];
CellActorData *actor[77];
UnkStruct_0200C440 *unk_684;
MessageLoader *msgLoader;
MessageLoader *ribbonLoader;
StringTemplate *strFormatter;
Strbuf *strbuf;
Strbuf *playerName;
MessageLoader *moveNameLoader;
NARC *narcPlPokeData;
s8 page;
u8 cursor : 4;
u8 cursorTmp : 4;
u8 subscreen;
u8 subscreenType : 4;
u8 subscreenExit : 4;
u8 sheenState;
u8 sheenMax;
u8 sheenPos;
u8 sheenCount;
u8 buttonCount;
u8 buttonState;
u8 buttonPos;
u8 ribbonPos;
u8 ribbonState;
u8 ribbonMax;
u8 ribbonNum;
} PokemonSummaryApp;
BOOL PokemonSummary_ShowContestData(SaveData *param0);
void PokemonSummary_FlagVisiblePages(PokemonSummary *param0, const u8 *param1);
u8 PokemonSummary_PageIsVisble(PokemonSummaryApp *param0, u32 param1);

View File

@@ -1,32 +0,0 @@
#ifndef POKEPLATINUM_STRUCT_POKEMON_SUMMARY_H
#define POKEPLATINUM_STRUCT_POKEMON_SUMMARY_H
#include "struct_defs/chatot_cry.h"
#include "game_options.h"
typedef struct PokemonSummary {
void *monData; //!< Pointer to generic Pokemon data
Options *options; // unk_04
const u16 *OTName; // unk_08
u32 OTID; // unk_0C
u8 OTGender; // unk_10
u8 dataType; // unk_11
u8 mode; // unk_12
u8 max; // unk_13
u8 pos; // unk_14
u8 pageFlag; // unk_15
u8 selectedSlot; // unk_16
u8 returnMode; // unk_17
u16 move; // unk_18
u8 padding_1A[2];
u32 dexMode; // unk_1C
void *ribbons; // unk_20
void *poffin; // unk_24
ChatotCry *chatotCry; // unk_28
BOOL contest; // unk_2C
} PokemonSummary;
#endif // POKEPLATINUM_STRUCT_POKEMON_SUMMARY_H

View File

@@ -1,139 +0,0 @@
#ifndef POKEPLATINUM_STRUCT_POKEMON_SUMMARY_APP_H
#define POKEPLATINUM_STRUCT_POKEMON_SUMMARY_APP_H
#include "constants/moves.h"
#include "struct_decls/cell_actor_data.h"
#include "struct_decls/pokemon_animation_sys_decl.h"
#include "struct_decls/sprite_decl.h"
#include "struct_decls/struct_0200C440_decl.h"
#include "struct_decls/struct_0200C6E4_decl.h"
#include "struct_decls/struct_0200C704_decl.h"
#include "struct_defs/archived_poke_sprite_data.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/sprite_animation_frame.h"
#include "struct_defs/struct_02091850.h"
#include "bg_window.h"
#include "camera.h"
#include "cell_actor.h"
#include "message.h"
#include "narc.h"
#include "strbuf.h"
#include "string_template.h"
typedef struct PokemonSummaryAppData {
Strbuf *speciesName;
Strbuf *nickname;
Strbuf *OTName;
u16 species;
u16 heldItem;
u8 type1;
u8 type2;
u8 level : 7;
u8 showGender : 1;
u8 gender : 2;
u8 caughtBall : 6;
u32 OTID;
u32 curExp;
u32 curLevelExp;
u32 nextLevelExp;
u16 curHP;
u16 maxHP;
u16 attack;
u16 defense;
u16 spAttack;
u16 spDefense;
u16 speed;
u8 ability;
u8 nature;
u16 moves[LEARNED_MOVES_MAX];
u8 curPP[LEARNED_MOVES_MAX];
u8 maxPP[LEARNED_MOVES_MAX];
u8 OTGender;
u8 cool;
u8 beauty;
u8 cute;
u8 smart;
u8 tough;
u8 sheen;
u8 preferredFlavor;
u16 markings;
u16 form;
u32 status : 28;
u32 isEgg : 1;
u32 isShiny : 1;
u32 pokerus : 2;
u32 ribbons[4];
} PokemonSummaryAppData;
typedef struct PokemonSummaryAppSpriteData {
Camera *camera;
void *spriteManager;
SpriteAnimationFrame frames[MAX_ANIMATION_FRAMES];
PokemonAnimationSys *animationSys;
Sprite *sprite;
BOOL flip;
} PokemonSummaryAppSpriteData;
typedef struct PokemonSummaryApp {
BgConfig *bgl;
Window staticWindows[36];
Window *extraWindows;
u32 numExtraWindows;
PokemonSummary *data;
PokemonSummaryAppData monData;
PokemonSummaryAppSpriteData monSpriteData;
UnkStruct_02091850 unk_2F0[4];
UnkStruct_02091850 unk_350[4];
UnkStruct_02091850 unk_3B0[4];
u32 unk_410;
SpriteRenderer *renderer;
SpriteGfxHandler *gfxHandler;
CellActor *unk_41C[77];
CellActorData *actor[77];
UnkStruct_0200C440 *unk_684;
MessageLoader *msgLoader;
MessageLoader *ribbonLoader;
StringTemplate *strFormatter;
Strbuf *strbuf;
Strbuf *playerName;
MessageLoader *moveNameLoader;
NARC *narcPlPokeData;
s8 page;
u8 cursor : 4;
u8 cursorTmp : 4;
u8 subscreen;
u8 subscreenType : 4;
u8 subscreenExit : 4;
u8 sheenState;
u8 sheenMax;
u8 sheenPos;
u8 sheenCount;
u8 buttonCount;
u8 buttonState;
u8 buttonPos;
u8 ribbonPos;
u8 ribbonState;
u8 ribbonMax;
u8 ribbonNum;
} PokemonSummaryApp;
#endif // POKEPLATINUM_STRUCT_POKEMON_SUMMARY_APP_H

View File

@@ -6,7 +6,6 @@
#include "struct_decls/sprite_decl.h"
#include "struct_decls/struct_02007768_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0207C690.h"
#include "struct_defs/struct_0207C8C4.h"
@@ -19,6 +18,7 @@
#include "overlay_manager.h"
#include "palette.h"
#include "pokemon.h"
#include "pokemon_summary_app.h"
#include "poketch_data.h"
#include "strbuf.h"
#include "string_template.h"

View File

@@ -10,7 +10,6 @@
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/archived_sprite.h"
#include "struct_defs/chatot_cry.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0200C738.h"
#include "struct_defs/struct_02027F8C.h"
#include "struct_defs/struct_02095E80_sub1.h"
@@ -25,6 +24,7 @@
#include "menu.h"
#include "message.h"
#include "overlay_manager.h"
#include "pokemon_summary_app.h"
#include "savedata.h"
#include "sprite_resource.h"
#include "strbuf.h"

View File

@@ -1,11 +1,11 @@
#ifndef POKEPLATINUM_STRUCT_0209BBA4_H
#define POKEPLATINUM_STRUCT_0209BBA4_H
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_02098C44.h"
#include "field/field_system_decl.h"
#include "pokemon_summary_app.h"
#include "savedata.h"
typedef struct {

View File

@@ -4,7 +4,6 @@
#include "struct_decls/struct_02070950_decl.h"
#include "struct_decls/struct_0209747C_decl.h"
#include "struct_defs/choose_starter_data.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0203D8AC.h"
#include "struct_defs/struct_0203D9B8.h"
#include "struct_defs/struct_0203E234.h"
@@ -23,6 +22,7 @@
#include "field_task.h"
#include "pokemon.h"
#include "pokemon_summary_app.h"
#include "savedata.h"
void sub_0203D1D4(FieldSystem *fieldSystem, BattleParams *param1);

View File

@@ -1,9 +1,8 @@
#ifndef POKEPLATINUM_UNK_0208EA44_H
#define POKEPLATINUM_UNK_0208EA44_H
#include "struct_defs/pokemon_summary_app.h"
#include "bg_window.h"
#include "pokemon_summary_app.h"
void sub_0208EA44(PokemonSummaryApp *param0);
void sub_0208EAF4(PokemonSummaryApp *param0);

View File

@@ -1,7 +1,7 @@
#ifndef POKEPLATINUM_UNK_0208FCF8_H
#define POKEPLATINUM_UNK_0208FCF8_H
#include "struct_defs/pokemon_summary_app.h"
#include "pokemon_summary_app.h"
void sub_0208FCF8(PokemonSummaryApp *param0);
void sub_0208FD40(PokemonSummaryApp *param0);

View File

@@ -1,7 +1,7 @@
#ifndef POKEPLATINUM_UNK_020916B4_H
#define POKEPLATINUM_UNK_020916B4_H
#include "struct_defs/pokemon_summary_app.h"
#include "pokemon_summary_app.h"
void sub_020916B4(PokemonSummaryApp *param0);
void sub_02091750(PokemonSummaryApp *param0);

View File

@@ -1,7 +1,7 @@
#ifndef POKEPLATINUM_UNK_020920C0_H
#define POKEPLATINUM_UNK_020920C0_H
#include "struct_defs/pokemon_summary_app.h"
#include "pokemon_summary_app.h"
void sub_020920C0(PokemonSummaryApp *param0);
void sub_0209219C(PokemonSummaryApp *param0);

View File

@@ -10,7 +10,6 @@
#include "struct_decls/struct_0207CB08_decl.h"
#include "struct_decls/struct_0209747C_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/sentence.h"
#include "struct_defs/sprite_template.h"
#include "struct_defs/struct_0200D0F4.h"

View File

@@ -11,7 +11,6 @@
#include "struct_decls/struct_0207CB08_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/chatot_cry.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_02042434.h"
#include "struct_defs/struct_0208737C.h"

View File

@@ -5,7 +5,6 @@
#include "struct_decls/struct_0200C6E4_decl.h"
#include "struct_decls/struct_0200C704_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/sprite_template.h"
#include "struct_defs/struct_0200D0F4.h"
#include "struct_defs/struct_020997B8.h"

View File

@@ -4,7 +4,6 @@
#include <string.h>
#include "struct_decls/struct_0209B75C_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_02098C44.h"
#include "struct_defs/struct_0209BBA4.h"

View File

@@ -6,7 +6,6 @@
#include "struct_decls/sprite_decl.h"
#include "struct_decls/struct_02007768_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0207C690.h"
#include "struct_defs/struct_02099F80.h"

View File

@@ -5,7 +5,6 @@
#include "struct_decls/struct_0200C440_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_02099F80.h"
#include "overlay104/ov104_0222DCE0.h"

View File

@@ -1,11 +1,10 @@
#include "struct_defs/pokemon_summary_app.h"
#include "pokemon_summary_app.h"
#include <nitro.h>
#include <string.h>
#include "constants/pokemon.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_02099F80.h"
#include "bg_window.h"

View File

@@ -30,7 +30,6 @@
#include "struct_decls/struct_020797DC_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/choose_starter_data.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0202A93C.h"
#include "struct_defs/struct_0202D7B0.h"
#include "struct_defs/struct_0202DF8C.h"
@@ -117,6 +116,7 @@
#include "player_avatar.h"
#include "poffin.h"
#include "pokemon.h"
#include "pokemon_summary_app.h"
#include "pokeradar.h"
#include "poketch_data.h"
#include "render_window.h"

View File

@@ -13,7 +13,6 @@
#include "struct_decls/struct_0209747C_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/choose_starter_data.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0202DF8C.h"
#include "struct_defs/struct_0203D8AC.h"
#include "struct_defs/struct_0203D9B8.h"

View File

@@ -11,7 +11,6 @@
#include "struct_decls/struct_0203068C_decl.h"
#include "struct_decls/struct_020308A0_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0204AFC4.h"
#include "struct_defs/struct_0204F3D0.h"
#include "struct_defs/struct_02098C44.h"

View File

@@ -6,7 +6,6 @@
#include "struct_decls/struct_020302DC_decl.h"
#include "struct_decls/struct_0203041C_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0204AFC4.h"
#include "struct_defs/struct_0204FCF8.h"
#include "struct_defs/struct_02098C44.h"

View File

@@ -6,7 +6,6 @@
#include "struct_decls/struct_020304A0_decl.h"
#include "struct_decls/struct_020305B8_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0204AFC4.h"
#include "struct_defs/struct_02050224.h"
#include "struct_defs/struct_02098C44.h"

View File

@@ -4,7 +4,6 @@
#include <string.h>
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_02072014.h"
#include "struct_defs/struct_02098C44.h"

View File

@@ -9,7 +9,6 @@
#include "struct_decls/struct_0202D060_decl.h"
#include "struct_decls/struct_0202D750_decl.h"
#include "struct_decls/struct_0203068C_decl.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0206BC70.h"
#include "struct_defs/struct_02098C44.h"

View File

@@ -11,7 +11,6 @@
#include "struct_decls/struct_0207AE68_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/archived_sprite.h"
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/sprite_animation_frame.h"
#include "struct_defs/struct_0202818C.h"
#include "struct_defs/struct_0202CA28.h"

View File

@@ -3,8 +3,6 @@
#include <nitro.h>
#include <string.h>
#include "struct_defs/pokemon_summary_app.h"
#include "overlay007/struct_ov7_0224F2EC.h"
#include "overlay007/struct_ov7_0224F358.h"
#include "overlay104/struct_ov104_022412F4.h"

View File

@@ -3,7 +3,6 @@
#include <nitro.h>
#include <string.h>
#include "struct_defs/pokemon_summary_app.h"
#include "struct_defs/struct_02090800.h"
#include "bg_window.h"

View File

@@ -6,7 +6,6 @@
#include <string.h>
#include "struct_defs/archived_sprite.h"
#include "struct_defs/pokemon_summary_app.h"
#include "struct_defs/struct_02091850.h"
#include "overlay115/camera_angle.h"

View File

@@ -3,10 +3,9 @@
#include <nitro.h>
#include <string.h>
#include "struct_defs/pokemon_summary_app.h"
#include "bg_window.h"
#include "core_sys.h"
#include "pokemon_summary_app.h"
#include "touch_screen.h"
#include "unk_02005474.h"
#include "unk_0208EA44.h"

View File

@@ -3,7 +3,6 @@
#include <nitro.h>
#include <string.h>
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_0202A93C.h"
#include "struct_defs/struct_0203D9B8.h"
#include "struct_defs/struct_020989DC.h"

View File

@@ -3,7 +3,6 @@
#include <nitro.h>
#include <string.h>
#include "struct_defs/pokemon_summary.h"
#include "struct_defs/struct_02098C44.h"
#include "struct_defs/struct_0209C194.h"
#include "struct_defs/struct_0209C194_1.h"
@@ -18,6 +17,7 @@
#include "game_records.h"
#include "heap.h"
#include "journal.h"
#include "pokemon_summary_app.h"
#include "save_player.h"
#include "unk_020366A0.h"
#include "unk_0203D1B8.h"