Bazaar developer reference

CvBuildingEntry::GetSeaResourceYieldChange(int) const

Defined in
CvBuildingClasses.cpp, line 1845
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetSeaResourceYieldChange

Hooks

static bool BeforeCvBuildingEntry_GetSeaResourceYieldChange(const CvBuildingEntry* self, int i, int& result);static void AfterCvBuildingEntry_GetSeaResourceYieldChange(const CvBuildingEntry* self, int i, int& result);static int ReplaceCvBuildingEntry_GetSeaResourceYieldChange(int (*original)(const CvBuildingEntry*, int), const CvBuildingEntry* self, int i);CivRegisterBefore<CivHooks::CvBuildingEntry_GetSeaResourceYieldChange>(host, &BeforeCvBuildingEntry_GetSeaResourceYieldChange);CivRegisterAfter<CivHooks::CvBuildingEntry_GetSeaResourceYieldChange>(host, &AfterCvBuildingEntry_GetSeaResourceYieldChange);CivRegisterReplace<CivHooks::CvBuildingEntry_GetSeaResourceYieldChange>(host, &ReplaceCvBuildingEntry_GetSeaResourceYieldChange);

Code

1844/// Sea resource yield changes by type1845int CvBuildingEntry::GetSeaResourceYieldChange(int i) const1846{1847	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");1848	CvAssertMsg(i > -1, "Index out of bounds");1849	return m_piSeaResourceYieldChange ? m_piSeaResourceYieldChange[i] : -1;1850}

Called by