mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
1cb659df8c
- Determined how the various script contexts were used and renamed accordingly. - ScriptContext2_Enable/Disable => Lock/UnlockPlayerFieldControls - The sole purpose of the flag is to make sure the player can't move around in the overworld. It has nothing to do with script contexts. - ScriptContext1 => ScriptContext - It is the global script context used to set up scripts which run over many frames. - ScriptContext2_RunNewScript => RunScriptImmediately - ScriptContext2's sole purpose was to run scripts immediately and in a separate context, usually while the global context is waiting for things like map loads or screen changes.
26 lines
747 B
C
26 lines
747 B
C
#ifndef GUARD_APPRENTICE_H
|
|
#define GUARD_APPRENTICE_H
|
|
|
|
#include "constants/apprentice.h"
|
|
|
|
struct ApprenticeTrainer
|
|
{
|
|
u8 name[NUM_LANGUAGES - 1][PLAYER_NAME_LENGTH + 1]; // For all languages except the unused one.
|
|
u16 otId;
|
|
u8 facilityClass;
|
|
u16 species[APPRENTICE_SPECIES_COUNT];
|
|
u8 id;
|
|
u16 speechLost[EASY_CHAT_BATTLE_WORDS_COUNT];
|
|
};
|
|
|
|
extern const struct ApprenticeTrainer gApprentices[];
|
|
|
|
void BufferApprenticeChallengeText(u8 saveApprenticeId);
|
|
void Apprentice_ScriptContext_Enable(void);
|
|
void ResetApprenticeStruct(struct Apprentice *apprentice);
|
|
void ResetAllApprenticeData(void);
|
|
void CallApprenticeFunction(void);
|
|
const u8 *GetApprenticeNameInLanguage(u32 apprenticeId, s32 language);
|
|
|
|
#endif // GUARD_APPRENTICE_H
|