CvCity::setFood(int)
- Defined in
- CvCity.cpp, line 9188
- Class
- CvCity
- Hook name
CivHooks::CvCity_setFood
Hooks
static bool BeforeCvCity_setFood(CvCity* self, int iNewValue);static void AfterCvCity_setFood(CvCity* self, int iNewValue);static void ReplaceCvCity_setFood(void (*original)(CvCity*, int), CvCity* self, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setFood>(host, &BeforeCvCity_setFood);CivRegisterAfter<CivHooks::CvCity_setFood>(host, &AfterCvCity_setFood);CivRegisterReplace<CivHooks::CvCity_setFood>(host, &ReplaceCvCity_setFood);
Code
9188void CvCity::setFood(int iNewValue)9189{9190 VALIDATE_OBJECT9191 setFoodTimes100(iNewValue*100);9192}