Bazaar developer reference

CvDllPreGame::setLeaderKey(PlayerTypes, const CvString &)

Defined in
CvDllPreGame.cpp, line 790
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setLeaderKey

Hooks

static bool BeforeCvDllPreGame_setLeaderKey(CvDllPreGame* self, PlayerTypes p, const CvString& n);static void AfterCvDllPreGame_setLeaderKey(CvDllPreGame* self, PlayerTypes p, const CvString& n);static void ReplaceCvDllPreGame_setLeaderKey(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_setLeaderKey::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setLeaderKey);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setLeaderKey::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setLeaderKey);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setLeaderKey::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setLeaderKey);

Code

790void CvDllPreGame::setLeaderKey(PlayerTypes p, const CvString& n)791{792	CvPreGame::setLeaderKey(p, n);793}

Calls