Add typedefs for MAPSEC and METLOC values (#2183)
Added typedefs: mapsec_t, metloc_t, and variants for MAPSEC and METLOC values. There are some rough edges that could do with smoothing out, but for now, this gets us close to ideal with a ROM that compares equal. Per feedback, all typedefs to mention the underlying type within the typedef name. The documentation comments reflect and explain the naming convention. Updated comments to reflect the fact that we're no longer using SET8 for a Pokemon's met locations, in favor of a new macro (added by this PR) that adjusts to match the width of whatever is being set.
This commit is contained in:
@@ -17,7 +17,7 @@ struct PokenavMonListItem
|
||||
struct PokenavMatchCallEntry
|
||||
{
|
||||
bool8 isSpecialTrainer;
|
||||
u8 mapSec;
|
||||
mapsec_u8_t mapSec;
|
||||
u16 headerId;
|
||||
};
|
||||
|
||||
@@ -410,7 +410,7 @@ void FreeMatchCallSubstruct1(void);
|
||||
int IsMatchCallListInitFinished(void);
|
||||
int GetNumberRegistered(void);
|
||||
struct PokenavMatchCallEntry *GetMatchCallList(void);
|
||||
u16 GetMatchCallMapSec(int index);
|
||||
mapsec_u16_t GetMatchCallMapSec(int index);
|
||||
bool32 ShouldDrawRematchPokeballIcon(int index);
|
||||
void ClearRematchPokeballIcon(u16 windowId, u32 tileOffset);
|
||||
int GetMatchCallTrainerPic(int index);
|
||||
@@ -419,7 +419,7 @@ const u8 *GetMatchCallMessageText(int index, bool8 *newRematchRequest);
|
||||
u16 GetMatchCallOptionCursorPos(void);
|
||||
u16 GetMatchCallOptionId(int optionId);
|
||||
void BufferMatchCallNameAndDesc(struct PokenavMatchCallEntry *matchCallEntry, u8 *str);
|
||||
u8 GetMatchTableMapSectionId(int rematchIndex);
|
||||
mapsec_u8_t GetMatchTableMapSectionId(int rematchIndex);
|
||||
int GetIndexDeltaOfNextCheckPageDown(int index);
|
||||
int GetIndexDeltaOfNextCheckPageUp(int index);
|
||||
bool32 IsRematchEntryRegistered(int rematchIndex);
|
||||
|
||||
Reference in New Issue
Block a user