Bazaar developer reference

CvCity::setFoodKept(int)

Defined in
CvCity.cpp, line 9229
Class
CvCity
Hook name
CivHooks::CvCity_setFoodKept

Hooks

static bool BeforeCvCity_setFoodKept(CvCity* self, int iNewValue);static void AfterCvCity_setFoodKept(CvCity* self, int iNewValue);static void ReplaceCvCity_setFoodKept(void (*original)(CvCity*, int), CvCity* self, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setFoodKept>(host, &BeforeCvCity_setFoodKept);CivRegisterAfter<CivHooks::CvCity_setFoodKept>(host, &AfterCvCity_setFoodKept);CivRegisterReplace<CivHooks::CvCity_setFoodKept>(host, &ReplaceCvCity_setFoodKept);

Code

9229void CvCity::setFoodKept(int iNewValue)9230{9231	VALIDATE_OBJECT9232	m_iFoodKept = iNewValue;9233}

Calls

Called by