Bazaar developer reference

CvPlot::setFoundValue(PlayerTypes, int)

Defined in
CvPlot.cpp, line 8696
Class
CvPlot
Hook name
CivHooks::CvPlot_setFoundValue

Hooks

static bool BeforeCvPlot_setFoundValue(CvPlot* self, PlayerTypes eIndex, int iNewValue);static void AfterCvPlot_setFoundValue(CvPlot* self, PlayerTypes eIndex, int iNewValue);static void ReplaceCvPlot_setFoundValue(void (*original)(CvPlot*, PlayerTypes, int), CvPlot* self, PlayerTypes eIndex, int iNewValue);CivRegisterBefore<CivHooks::CvPlot_setFoundValue>(host, &BeforeCvPlot_setFoundValue);CivRegisterAfter<CivHooks::CvPlot_setFoundValue>(host, &AfterCvPlot_setFoundValue);CivRegisterReplace<CivHooks::CvPlot_setFoundValue>(host, &ReplaceCvPlot_setFoundValue);

Code

8696void CvPlot::setFoundValue(PlayerTypes eIndex, int iNewValue)8697{8698	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");8699	CvAssertMsg(eIndex < MAX_PLAYERS, "eIndex is expected to be within maximum bounds (invalid Index)");87008701	m_aiFoundValue[eIndex] = iNewValue;8702}

Called by