mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-10-24 01:25:24 -05:00
Documented part of PartyManagementData struct (#517)
* Begin documenting party screen healthbar * really minor rename of unnamed parameter * Big rename that will probably cause issues bc VSCode's rename is not ideal * should match * document part of PartyManagementData struct * apparently I missed these idk how it build without them * swap include order * begin documenting unk_02084B70.c * clean up parameter names a bit * some more instances of windowLayout * continue documenting fields of PartyManagementData * more progress on PartyManagementData * Revert PartyMenu_MakeSelection to sub_02083370 and remove enum * name all unnamed PartyManagementData variables partyMan
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef POKEPLATINUM_STRUCT_OV13_02221ED0_H
|
||||
#define POKEPLATINUM_STRUCT_OV13_02221ED0_H
|
||||
|
||||
#include "applications/pokemon_summary_screen/main.h"
|
||||
#include "overlay013/struct_ov13_022236B8.h"
|
||||
|
||||
#include "pokemon.h"
|
||||
@@ -13,14 +14,14 @@ typedef struct {
|
||||
u16 unk_0A;
|
||||
u16 unk_0C;
|
||||
u16 unk_0E;
|
||||
u16 unk_10;
|
||||
u16 curHP;
|
||||
u16 unk_12;
|
||||
u8 unk_14;
|
||||
u8 unk_15;
|
||||
u8 unk_16_0 : 7;
|
||||
u8 unk_16_7 : 1;
|
||||
u8 unk_17_0 : 3;
|
||||
u8 unk_17_3 : 4;
|
||||
u8 summaryStatus : 4;
|
||||
u8 unk_17_7 : 1;
|
||||
u16 unk_18;
|
||||
u16 unk_1A;
|
||||
|
||||
@@ -30,14 +30,14 @@ typedef struct {
|
||||
u16 unk_324[96];
|
||||
u16 unk_3E4[96];
|
||||
u16 unk_4A4[128];
|
||||
PartyManagementData *unk_5A4;
|
||||
PartyManagementData *partyManagementData;
|
||||
SpriteSystem *unk_5A8;
|
||||
SpriteManager *unk_5AC;
|
||||
Sprite *unk_5B0[29];
|
||||
ManagedSprite *unk_624[29];
|
||||
UnkStruct_0200C440 *unk_698;
|
||||
MessageLoader *unk_69C;
|
||||
StringTemplate *unk_6A0;
|
||||
MessageLoader *messageLoader;
|
||||
StringTemplate *template;
|
||||
Strbuf *unk_6A4;
|
||||
Strbuf *unk_6A8;
|
||||
Strbuf *unk_6AC[20];
|
||||
@@ -54,11 +54,11 @@ typedef struct {
|
||||
u8 unk_B0F_0 : 6;
|
||||
u8 unk_B0F_6 : 1;
|
||||
u8 unk_B0F_7 : 1;
|
||||
u8 unk_B10;
|
||||
u8 unk_B11;
|
||||
u8 textPrinterID;
|
||||
u8 partySlot;
|
||||
u8 unk_B12;
|
||||
u8 unk_B13;
|
||||
u16 unk_B14[6];
|
||||
u16 monStats[6];
|
||||
HeightWeightData *unk_B20;
|
||||
OverlayMetadata *unk_B24;
|
||||
GenericPointerData *unk_B28;
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
typedef struct {
|
||||
Strbuf *unk_00;
|
||||
u16 unk_04;
|
||||
u16 unk_06;
|
||||
u16 unk_08;
|
||||
u16 unk_0A;
|
||||
u16 curHP;
|
||||
u16 maxHP;
|
||||
u16 level;
|
||||
u16 unk_0C;
|
||||
u16 unk_0E_0 : 12;
|
||||
u16 unk_0E_12 : 1;
|
||||
|
||||
@@ -1,36 +1,44 @@
|
||||
#ifndef POKEPLATINUM_STRUCT_02098C44_H
|
||||
#define POKEPLATINUM_STRUCT_02098C44_H
|
||||
|
||||
#include "struct_defs/struct_0202440C.h"
|
||||
#include "struct_defs/struct_0202610C.h"
|
||||
#include "struct_defs/struct_02028430.h"
|
||||
|
||||
#include "field/field_system_decl.h"
|
||||
|
||||
#include "bag.h"
|
||||
#include "field_move_tasks.h"
|
||||
#include "game_options.h"
|
||||
#include "party.h"
|
||||
|
||||
typedef struct {
|
||||
Party *unk_00;
|
||||
void *unk_04;
|
||||
void *unk_08;
|
||||
Options *unk_0C;
|
||||
void *unk_10;
|
||||
void *unk_14;
|
||||
void *unk_18;
|
||||
void *unk_1C;
|
||||
Party *party;
|
||||
Bag *bag;
|
||||
MailBox *mailBox;
|
||||
Options *options;
|
||||
TVBroadcast *broadcast;
|
||||
BattleRegulation *battleRegulation;
|
||||
FieldMoveContext *fieldMoveContext;
|
||||
FieldSystem *fieldSystem;
|
||||
u8 unk_20;
|
||||
u8 unk_21;
|
||||
u8 selectedMonSlot;
|
||||
u8 unk_23;
|
||||
u16 unk_24;
|
||||
u16 unk_26;
|
||||
u8 unk_28;
|
||||
u8 unk_29;
|
||||
u8 unk_2A;
|
||||
u8 menuSelectionResult;
|
||||
u16 usedItemID;
|
||||
u16 learnedMove;
|
||||
u8 selectedMoveSlot;
|
||||
u8 unk_29; // These three fields (unk_29, unk_2A, unk_2B) are used exactly once in the code (sub_0203D578) which is itself only used once.
|
||||
u8 unk_2A; // sub_0203D578 is used by ScrCmd_194 which is contest related so these fields are likely contest related too.
|
||||
u8 unk_2B;
|
||||
u8 unk_2C[6];
|
||||
u8 unk_32_0 : 4;
|
||||
u8 unk_32_4 : 4;
|
||||
u8 unk_33;
|
||||
int unk_34;
|
||||
u16 unk_38;
|
||||
u16 evoTargetSpecies;
|
||||
u8 padding_3A[2];
|
||||
int unk_3C;
|
||||
int evoType;
|
||||
} PartyManagementData;
|
||||
|
||||
#endif // POKEPLATINUM_STRUCT_02098C44_H
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
#include "struct_defs/struct_0207F248.h"
|
||||
|
||||
void sub_0207EA74(GameWindowLayout *param0, int param1);
|
||||
u8 sub_0207EF04(GameWindowLayout *param0, u8 param1);
|
||||
u8 sub_0207EF14(GameWindowLayout *param0, u8 param1);
|
||||
const u16 *sub_0207F248(GameWindowLayout *param0);
|
||||
void sub_0207F8F8(GameWindowLayout *param0, u8 param1);
|
||||
void sub_0207FD68(GameWindowLayout *param0, u8 param1);
|
||||
u8 sub_02080354(GameWindowLayout *param0, u8 param1);
|
||||
u8 sub_02080404(GameWindowLayout *param0, u8 param1);
|
||||
u8 sub_02080488(GameWindowLayout *param0, u8 param1);
|
||||
void sub_0207EA74(GameWindowLayout *windowLayout, int param1);
|
||||
u8 sub_0207EF04(GameWindowLayout *windowLayout, u8 param1);
|
||||
u8 sub_0207EF14(GameWindowLayout *windowLayout, u8 partySlot);
|
||||
const u16 *sub_0207F248(GameWindowLayout *windowLayout);
|
||||
void sub_0207F8F8(GameWindowLayout *windowLayout, u8 partySlot);
|
||||
void sub_0207FD68(GameWindowLayout *windowLayout, u8 partySlot);
|
||||
u8 sub_02080354(GameWindowLayout *windowLayout, u8 partySlot);
|
||||
u8 sub_02080404(GameWindowLayout *windowLayout, u8 partySlot);
|
||||
u8 sub_02080488(GameWindowLayout *windowLayout, u8 partySlot);
|
||||
u8 sub_020805D0(u8 param0, u8 param1);
|
||||
u8 GetElementIndex(u16 param0);
|
||||
u32 sub_02081930(void);
|
||||
@@ -19,7 +19,7 @@ u32 sub_02081934(void);
|
||||
u32 sub_02081938(void);
|
||||
u32 sub_0208193C(void);
|
||||
void LoadScreenDataFromNARC(u32 param0, u16 *param1, u16 *param2, u16 *param3);
|
||||
void LoadOverlay118(GameWindowLayout *param0);
|
||||
void UnloadOverlay118(GameWindowLayout *param0);
|
||||
void LoadOverlay118(GameWindowLayout *windowLayout);
|
||||
void UnloadOverlay118(GameWindowLayout *windowLayout);
|
||||
|
||||
#endif // POKEPLATINUM_UNK_0207E0B8_H
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
void sub_020852B8(GameWindowLayout *param0);
|
||||
int sub_02085348(void *param0);
|
||||
BOOL sub_020857A8(u16 param0);
|
||||
BOOL CheckItemSacredAsh(u16 param0);
|
||||
int sub_02085804(GameWindowLayout *param0);
|
||||
int sub_02085EF4(GameWindowLayout *param0);
|
||||
u8 sub_02086104(GameWindowLayout *param0, Pokemon *param1);
|
||||
|
||||
Reference in New Issue
Block a user