Bazaar developer reference

CvDllPreGame::civilization(PlayerTypes)

Defined in
CvDllPreGame.cpp, line 105
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_civilization

Hooks

static bool BeforeCvDllPreGame_civilization(CvDllPreGame* self, PlayerTypes p, CivilizationTypes& result);static void AfterCvDllPreGame_civilization(CvDllPreGame* self, PlayerTypes p, CivilizationTypes& result);static CivilizationTypes ReplaceCvDllPreGame_civilization(CivilizationTypes (*original)(CvDllPreGame*, PlayerTypes), CvDllPreGame* self, PlayerTypes p);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_civilization::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_civilization);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_civilization::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_civilization);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_civilization::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_civilization);

Code

105CivilizationTypes CvDllPreGame::civilization(PlayerTypes p)106{107	return CvPreGame::civilization(p);108}

Calls