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:
Yako
2025-05-26 20:07:32 +02:00
committed by GitHub
parent 6f0b6bcf30
commit 5e58dfdca4
31 changed files with 1585 additions and 1571 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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