Bazaar developer reference

CvUnitEntry::GetNumGoldPerEra() const

Defined in
CvUnitClasses.cpp, line 657
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_GetNumGoldPerEra

Hooks

static bool BeforeCvUnitEntry_GetNumGoldPerEra(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetNumGoldPerEra(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetNumGoldPerEra(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetNumGoldPerEra>(host, &BeforeCvUnitEntry_GetNumGoldPerEra);CivRegisterAfter<CivHooks::CvUnitEntry_GetNumGoldPerEra>(host, &AfterCvUnitEntry_GetNumGoldPerEra);CivRegisterReplace<CivHooks::CvUnitEntry_GetNumGoldPerEra>(host, &ReplaceCvUnitEntry_GetNumGoldPerEra);

Code

656/// Era boost to gold (for great people)657int CvUnitEntry::GetNumGoldPerEra() const658{659	return m_iNumGoldPerEra;660}

Called by