Bazaar developer reference

CvCityCulture::GetNumAvailableGreatWorkSlots(GreatWorkSlotType) const

Defined in
CvCultureClasses.cpp, line 4368
Class
CvCityCulture
Hook name
CivHooks::CvCityCulture_GetNumAvailableGreatWorkSlots

Hooks

static bool BeforeCvCityCulture_GetNumAvailableGreatWorkSlots(const CvCityCulture* self, GreatWorkSlotType eSlotType, int& result);static void AfterCvCityCulture_GetNumAvailableGreatWorkSlots(const CvCityCulture* self, GreatWorkSlotType eSlotType, int& result);static int ReplaceCvCityCulture_GetNumAvailableGreatWorkSlots(int (*original)(const CvCityCulture*, GreatWorkSlotType), const CvCityCulture* self, GreatWorkSlotType eSlotType);CivRegisterBefore<CivHooks::CvCityCulture_GetNumAvailableGreatWorkSlots>(host, &BeforeCvCityCulture_GetNumAvailableGreatWorkSlots);CivRegisterAfter<CivHooks::CvCityCulture_GetNumAvailableGreatWorkSlots>(host, &AfterCvCityCulture_GetNumAvailableGreatWorkSlots);CivRegisterReplace<CivHooks::CvCityCulture_GetNumAvailableGreatWorkSlots>(host, &ReplaceCvCityCulture_GetNumAvailableGreatWorkSlots);

Code

4367/// How many OPEN Great Works slots of a particular type are available in the city?4368int CvCityCulture::GetNumAvailableGreatWorkSlots(GreatWorkSlotType eSlotType) const4369{4370	return (m_pCity->GetCityBuildings()->GetNumAvailableGreatWorkSlots(eSlotType));4371}

Calls

Called by