Bazaar developer reference

CvDllPreGame::setMinorCiv(PlayerTypes, bool)

Defined in
CvDllPreGame.cpp, line 855
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setMinorCiv

Hooks

static bool BeforeCvDllPreGame_setMinorCiv(CvDllPreGame* self, PlayerTypes p, bool isMinor);static void AfterCvDllPreGame_setMinorCiv(CvDllPreGame* self, PlayerTypes p, bool isMinor);static void ReplaceCvDllPreGame_setMinorCiv(void (*original)(CvDllPreGame*, PlayerTypes, bool), CvDllPreGame* self, PlayerTypes p, bool isMinor);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setMinorCiv::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setMinorCiv);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setMinorCiv::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setMinorCiv);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setMinorCiv::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setMinorCiv);

Code

855void CvDllPreGame::setMinorCiv(PlayerTypes p, bool isMinor)856{857	CvPreGame::setMinorCiv(p, isMinor);858}

Calls