Bazaar developer reference

CvGameCulture::GetGreatWorkEraShort(int) const

Defined in
CvCultureClasses.cpp, line 316
Class
CvGameCulture
Hook name
CivHooks::CvGameCulture_GetGreatWorkEraShort

Hooks

static bool BeforeCvGameCulture_GetGreatWorkEraShort(const CvGameCulture* self, int iIndex, CvString& result);static void AfterCvGameCulture_GetGreatWorkEraShort(const CvGameCulture* self, int iIndex, CvString& result);static CvString ReplaceCvGameCulture_GetGreatWorkEraShort(CvString (*original)(const CvGameCulture*, int), const CvGameCulture* self, int iIndex);CivRegisterBefore<CivHooks::CvGameCulture_GetGreatWorkEraShort>(host, &BeforeCvGameCulture_GetGreatWorkEraShort);CivRegisterAfter<CivHooks::CvGameCulture_GetGreatWorkEraShort>(host, &AfterCvGameCulture_GetGreatWorkEraShort);CivRegisterReplace<CivHooks::CvGameCulture_GetGreatWorkEraShort>(host, &ReplaceCvGameCulture_GetGreatWorkEraShort);

Code

316CvString CvGameCulture::GetGreatWorkEraShort(int iIndex) const317{318	CvAssertMsg (iIndex < GetNumGreatWorks(), "Bad Great Work index");319	CvString szEra = "";320321	const CvGreatWork *pWork = &m_CurrentGreatWorks[iIndex];322	szEra = GC.getEraInfo(pWork->m_eEra)->getShortDesc();323324	return szEra;	325}

Calls

Called by