Bazaar developer reference

CvGameCulture::IsGreatWorkCreated(GreatWorkType) const

Defined in
CvCultureClasses.cpp, line 382
Class
CvGameCulture
Hook name
CivHooks::CvGameCulture_IsGreatWorkCreated

Hooks

static bool BeforeCvGameCulture_IsGreatWorkCreated(const CvGameCulture* self, GreatWorkType eType, bool& result);static void AfterCvGameCulture_IsGreatWorkCreated(const CvGameCulture* self, GreatWorkType eType, bool& result);static bool ReplaceCvGameCulture_IsGreatWorkCreated(bool (*original)(const CvGameCulture*, GreatWorkType), const CvGameCulture* self, GreatWorkType eType);CivRegisterBefore<CivHooks::CvGameCulture_IsGreatWorkCreated>(host, &BeforeCvGameCulture_IsGreatWorkCreated);CivRegisterAfter<CivHooks::CvGameCulture_IsGreatWorkCreated>(host, &AfterCvGameCulture_IsGreatWorkCreated);CivRegisterReplace<CivHooks::CvGameCulture_IsGreatWorkCreated>(host, &ReplaceCvGameCulture_IsGreatWorkCreated);

Code

381#if defined(MOD_API_EXTENSIONS)382bool CvGameCulture::IsGreatWorkCreated(GreatWorkType eType) const383{384	GreatWorkList::const_iterator it;385	for(it = m_CurrentGreatWorks.begin(); it != m_CurrentGreatWorks.end(); it++)386	{387		if ((*it).m_eType == eType)388		{389			return true;390		}391	}392	393	return false;394}

Calls

Called by