Bazaar developer reference

CvBuildingEntry::GetFoodKept() const

Defined in
CvBuildingClasses.cpp, line 1026
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetFoodKept

Hooks

static bool BeforeCvBuildingEntry_GetFoodKept(const CvBuildingEntry* self, int& result);static void AfterCvBuildingEntry_GetFoodKept(const CvBuildingEntry* self, int& result);static int ReplaceCvBuildingEntry_GetFoodKept(int (*original)(const CvBuildingEntry*), const CvBuildingEntry* self);CivRegisterBefore<CivHooks::CvBuildingEntry_GetFoodKept>(host, &BeforeCvBuildingEntry_GetFoodKept);CivRegisterAfter<CivHooks::CvBuildingEntry_GetFoodKept>(host, &AfterCvBuildingEntry_GetFoodKept);CivRegisterReplace<CivHooks::CvBuildingEntry_GetFoodKept>(host, &ReplaceCvBuildingEntry_GetFoodKept);

Code

1025/// Percentage of food retained after city growth1026int CvBuildingEntry::GetFoodKept() const1027{1028	return m_iFoodKept;1029}

Called by