Bazaar developer reference

CvBuildingEntry::GetFreeGreatWork() const

Defined in
CvBuildingClasses.cpp, line 888
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetFreeGreatWork

Hooks

static bool BeforeCvBuildingEntry_GetFreeGreatWork(const CvBuildingEntry* self, GreatWorkType& result);static void AfterCvBuildingEntry_GetFreeGreatWork(const CvBuildingEntry* self, GreatWorkType& result);static GreatWorkType ReplaceCvBuildingEntry_GetFreeGreatWork(GreatWorkType (*original)(const CvBuildingEntry*), const CvBuildingEntry* self);CivRegisterBefore<CivHooks::CvBuildingEntry_GetFreeGreatWork>(host, &BeforeCvBuildingEntry_GetFreeGreatWork);CivRegisterAfter<CivHooks::CvBuildingEntry_GetFreeGreatWork>(host, &AfterCvBuildingEntry_GetFreeGreatWork);CivRegisterReplace<CivHooks::CvBuildingEntry_GetFreeGreatWork>(host, &ReplaceCvBuildingEntry_GetFreeGreatWork);

Code

887/// Does this building come with a built-in Great Work?888GreatWorkType CvBuildingEntry::GetFreeGreatWork() const889{890	return m_eFreeGreatWork;891}

Called by