Bazaar developer reference

CvDllPreGame::setCivilizationKey(PlayerTypes, const CvString &)

Defined in
CvDllPreGame.cpp, line 645
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setCivilizationKey

Hooks

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

Code

645void CvDllPreGame::setCivilizationKey(PlayerTypes p, const CvString& d)646{647	CvPreGame::setCivilizationKey(p, d);648}

Calls