mirror of
https://github.com/pret/pokefirered.git
synced 2026-04-10 02:59:13 -05:00
51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
#ifndef GUARD_CEREADER_TOOL_H
|
|
#define GUARD_CEREADER_TOOL_H
|
|
|
|
#include "global.h"
|
|
|
|
struct TrainerTowerTrainer
|
|
{
|
|
/* 0x000 */ u8 name[11];
|
|
/* 0x00B */ u8 facilityClass;
|
|
/* 0x00C */ u8 gender;
|
|
/* 0x00E */ u16 speechBefore[6];
|
|
/* 0x01A */ u16 speechWin[6];
|
|
/* 0x026 */ u16 speechLose[6];
|
|
/* 0x032 */ u16 speechAfter[6];
|
|
/* 0x040 */ struct BattleTowerPokemon mons[PARTY_SIZE];
|
|
}; // size: 328
|
|
|
|
struct TrainerTowerFloor
|
|
{
|
|
/* 0x000 */ u8 unk_000;
|
|
/* 0x001 */ u8 floorIdx;
|
|
/* 0x002 */ u8 challengeType;
|
|
/* 0x003 */ u8 prize;
|
|
/* 0x004 */ struct TrainerTowerTrainer trainers[3];
|
|
/* 0x3DC */ u32 checksum;
|
|
};
|
|
|
|
struct EReaderTrainerHillSetSubstruct
|
|
{
|
|
u8 count;
|
|
u8 id;
|
|
u16 dummy;
|
|
u32 checksum;
|
|
};
|
|
|
|
struct EReaderTrainerHillSet
|
|
{
|
|
u8 count;
|
|
u8 id;
|
|
u16 dummy;
|
|
u32 checksum;
|
|
struct TrainerTowerFloor floors[8];
|
|
};
|
|
|
|
bool32 ValidateTrainerTowerData(struct EReaderTrainerHillSet * ttdata);
|
|
bool32 CEReaderTool_SaveTrainerTower(struct EReaderTrainerHillSet * ttdata);
|
|
bool32 CEReaderTool_LoadTrainerTower(struct EReaderTrainerHillSet * ttdata);
|
|
u8 sub_815D654(void);
|
|
|
|
#endif //GUARD_CEREADER_TOOL_H
|