Bazaar developer reference

CvPreGame::setMinorCiv(PlayerTypes, bool)

Defined in
CvPreGame.cpp, line 2786
Hook name
CivHooks::CvPreGame_setMinorCiv

Hooks

static bool BeforeCvPreGame_setMinorCiv(PlayerTypes p, bool isMinor);static void AfterCvPreGame_setMinorCiv(PlayerTypes p, bool isMinor);static void ReplaceCvPreGame_setMinorCiv(void (*original)(PlayerTypes, bool), PlayerTypes p, bool isMinor);CivRegisterBefore<CivHooks::CvPreGame_setMinorCiv>(host, &BeforeCvPreGame_setMinorCiv);CivRegisterAfter<CivHooks::CvPreGame_setMinorCiv>(host, &AfterCvPreGame_setMinorCiv);CivRegisterReplace<CivHooks::CvPreGame_setMinorCiv>(host, &ReplaceCvPreGame_setMinorCiv);

Code

2786void setMinorCiv(PlayerTypes p, bool isMinor)2787{2788	if(p >= 0 && p < MAX_PLAYERS)2789		s_minorNationCivs.setAt(p, isMinor);2790}

Calls

Called by