Bazaar developer reference

CvGameCulture::GetGreatWorkCreator(int) const

Defined in
CvCultureClasses.cpp, line 327
Class
CvGameCulture
Hook name
CivHooks::CvGameCulture_GetGreatWorkCreator

Hooks

static bool BeforeCvGameCulture_GetGreatWorkCreator(const CvGameCulture* self, int iIndex, PlayerTypes& result);static void AfterCvGameCulture_GetGreatWorkCreator(const CvGameCulture* self, int iIndex, PlayerTypes& result);static PlayerTypes ReplaceCvGameCulture_GetGreatWorkCreator(PlayerTypes (*original)(const CvGameCulture*, int), const CvGameCulture* self, int iIndex);CivRegisterBefore<CivHooks::CvGameCulture_GetGreatWorkCreator>(host, &BeforeCvGameCulture_GetGreatWorkCreator);CivRegisterAfter<CivHooks::CvGameCulture_GetGreatWorkCreator>(host, &AfterCvGameCulture_GetGreatWorkCreator);CivRegisterReplace<CivHooks::CvGameCulture_GetGreatWorkCreator>(host, &ReplaceCvGameCulture_GetGreatWorkCreator);

Code

327PlayerTypes CvGameCulture::GetGreatWorkCreator (int iIndex) const328{329	CvAssertMsg (iIndex < GetNumGreatWorks(), "Bad Great Work index");330	const CvGreatWork *pWork = &m_CurrentGreatWorks[iIndex];331	return pWork->m_ePlayer;332}

Calls

Called by