s32 addPartnerEntry(s32 partner, s32 id)
Gives a partner Digimon id at level 1; 0 if it has it already or has no room.
PartnerStats * getPartnerStats(s32 partner)
A partner's name, stats and Digimon.
s32 getPartnerSlots(s32 partner, s16 *out)
Copies the ids of the Digimon a partner takes to battle; returns how many there are.
s32 listPartnerEntries(s32 partner, u16 *out)
Copies the ids of a partner's Digimon, zero-filled; returns how many there are.
void setPartnerSlots(s32 partner, s16 *ids)
Picks the Digimon a partner takes to battle (-1 for ids it does not have)
s32 findPartnerEntry(s32 partner, s32 id)
The index of Digimon id among a partner's entries, or -1.
s32 setPartnerEntry(s32 partner, s32 id, PartnerEntry *in)
Overwrites a partner's Digimon id; returns its index, or -1.
s32 getPartnerEntry(s32 partner, s32 id, PartnerEntry *out)
Copies a partner's Digimon id; returns its index, or -1.
GameState GAME
The save data, the game mode and the methods.
#define FIRST_ENTRY_ID
The first PartnerEntry.id of a Digimon: 0 is a free entry, 1 and 2 unused ones.
#define PARTNER_SLOT_COUNT
#define PARTNER_ENTRY_COUNT
The Digimon a partner can have, and the ones it takes to battle.
DigimonData *(* GET_DIGIMON)(s32 id)
getDigimon for the overlays, in the small data (.sdata) between game/items.c's and file/file_table....
Partner partners[PARTNER_COUNT]
One of a partner's Digimon (getPartnerEntry, setPartnerEntry)
s8 level
shown in the lab; 1 when added
s16 id
FIRST_ENTRY_ID and up.
A partner Digimon from its name on (Partner.info), as getPartnerStats gives it.
s16 slots[4]
PARTNER_SLOT_COUNT entries picked from entries[].