Bazaar developer reference

CvPlot::SetNoSettling(PlayerTypes, bool)

Defined in
CvPlot.cpp, line 9122
Class
CvPlot
Hook name
CivHooks::CvPlot_SetNoSettling

Hooks

static bool BeforeCvPlot_SetNoSettling(CvPlot* self, PlayerTypes eMajor, bool bValue);static void AfterCvPlot_SetNoSettling(CvPlot* self, PlayerTypes eMajor, bool bValue);static void ReplaceCvPlot_SetNoSettling(void (*original)(CvPlot*, PlayerTypes, bool), CvPlot* self, PlayerTypes eMajor, bool bValue);CivRegisterBefore<CivHooks::CvPlot_SetNoSettling>(host, &BeforeCvPlot_SetNoSettling);CivRegisterAfter<CivHooks::CvPlot_SetNoSettling>(host, &AfterCvPlot_SetNoSettling);CivRegisterReplace<CivHooks::CvPlot_SetNoSettling>(host, &ReplaceCvPlot_SetNoSettling);

Code

9122void CvPlot::SetNoSettling(PlayerTypes eMajor, bool bValue)9123{9124	CvAssertMsg(eMajor >= 0, "eMajor is expected to be non-negative (invalid Index)");9125	CvAssertMsg(eMajor < MAX_MAJOR_CIVS, "eMajor is expected to be within maximum bounds (invalid Index)");91269127	if(bValue != IsNoSettling(eMajor))9128		m_abNoSettling[eMajor] = bValue;9129}

Calls

Called by