Bazaar developer reference

CvBuildingEntry::GetRiverPlotYieldChange(int) const

Defined in
CvBuildingClasses.cpp, line 1817
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetRiverPlotYieldChange

Hooks

static bool BeforeCvBuildingEntry_GetRiverPlotYieldChange(const CvBuildingEntry* self, int i, int& result);static void AfterCvBuildingEntry_GetRiverPlotYieldChange(const CvBuildingEntry* self, int i, int& result);static int ReplaceCvBuildingEntry_GetRiverPlotYieldChange(int (*original)(const CvBuildingEntry*, int), const CvBuildingEntry* self, int i);CivRegisterBefore<CivHooks::CvBuildingEntry_GetRiverPlotYieldChange>(host, &BeforeCvBuildingEntry_GetRiverPlotYieldChange);CivRegisterAfter<CivHooks::CvBuildingEntry_GetRiverPlotYieldChange>(host, &AfterCvBuildingEntry_GetRiverPlotYieldChange);CivRegisterReplace<CivHooks::CvBuildingEntry_GetRiverPlotYieldChange>(host, &ReplaceCvBuildingEntry_GetRiverPlotYieldChange);

Code

1816/// River plot yield changes by type1817int CvBuildingEntry::GetRiverPlotYieldChange(int i) const1818{1819	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");1820	CvAssertMsg(i > -1, "Index out of bounds");1821	return m_piRiverPlotYieldChange ? m_piRiverPlotYieldChange[i] : -1;1822}

Called by