Bazaar developer reference

CvBuildingEntry::GetFeatureYieldChangeArray(int) const

Defined in
CvBuildingClasses.cpp, line 2039
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetFeatureYieldChangeArray

Hooks

static bool BeforeCvBuildingEntry_GetFeatureYieldChangeArray(const CvBuildingEntry* self, int i, int*& result);static void AfterCvBuildingEntry_GetFeatureYieldChangeArray(const CvBuildingEntry* self, int i, int*& result);static int* ReplaceCvBuildingEntry_GetFeatureYieldChangeArray(int* (*original)(const CvBuildingEntry*, int), const CvBuildingEntry* self, int i);CivRegisterBefore<CivHooks::CvBuildingEntry_GetFeatureYieldChangeArray>(host, &BeforeCvBuildingEntry_GetFeatureYieldChangeArray);CivRegisterAfter<CivHooks::CvBuildingEntry_GetFeatureYieldChangeArray>(host, &AfterCvBuildingEntry_GetFeatureYieldChangeArray);CivRegisterReplace<CivHooks::CvBuildingEntry_GetFeatureYieldChangeArray>(host, &ReplaceCvBuildingEntry_GetFeatureYieldChangeArray);

Code

2038/// Array of changes to Feature yield2039int* CvBuildingEntry::GetFeatureYieldChangeArray(int i) const2040{2041	CvAssertMsg(i < GC.getNumFeatureInfos(), "Index out of bounds");2042	CvAssertMsg(i > -1, "Index out of bounds");2043	return m_ppaiFeatureYieldChange[i];2044}