Bazaar developer reference

CvDllPreGame::isMinorCiv(PlayerTypes)

Defined in
CvDllPreGame.cpp, line 325
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_isMinorCiv

Hooks

static bool BeforeCvDllPreGame_isMinorCiv(CvDllPreGame* self, PlayerTypes p, bool& result);static void AfterCvDllPreGame_isMinorCiv(CvDllPreGame* self, PlayerTypes p, bool& result);static bool ReplaceCvDllPreGame_isMinorCiv(bool (*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_isMinorCiv::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_isMinorCiv);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_isMinorCiv::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_isMinorCiv);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_isMinorCiv::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_isMinorCiv);

Code

325bool CvDllPreGame::isMinorCiv(PlayerTypes p)326{327	return CvPreGame::isMinorCiv(p);328}

Calls