Bazaar developer reference

CvDllPreGame::setLeaderName(PlayerTypes, const CvString &)

Defined in
CvDllPreGame.cpp, line 785
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setLeaderName

Hooks

static bool BeforeCvDllPreGame_setLeaderName(CvDllPreGame* self, PlayerTypes p, const CvString& n);static void AfterCvDllPreGame_setLeaderName(CvDllPreGame* self, PlayerTypes p, const CvString& n);static void ReplaceCvDllPreGame_setLeaderName(void (*original)(CvDllPreGame*, PlayerTypes, const CvString&), CvDllPreGame* self, PlayerTypes p, const CvString& n);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setLeaderName::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setLeaderName);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setLeaderName::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setLeaderName);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setLeaderName::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setLeaderName);

Code

785void CvDllPreGame::setLeaderName(PlayerTypes p, const CvString& n)786{787	CvPreGame::setLeaderName(p, n);788}

Calls