Bazaar developer reference

CvBuildingEntry::IsPurchaseOnly() const

Defined in
CvBuildingClasses.cpp, line 1482
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_IsPurchaseOnly

Hooks

static bool BeforeCvBuildingEntry_IsPurchaseOnly(const CvBuildingEntry* self, bool& result);static void AfterCvBuildingEntry_IsPurchaseOnly(const CvBuildingEntry* self, bool& result);static bool ReplaceCvBuildingEntry_IsPurchaseOnly(bool (*original)(const CvBuildingEntry*), const CvBuildingEntry* self);CivRegisterBefore<CivHooks::CvBuildingEntry_IsPurchaseOnly>(host, &BeforeCvBuildingEntry_IsPurchaseOnly);CivRegisterAfter<CivHooks::CvBuildingEntry_IsPurchaseOnly>(host, &AfterCvBuildingEntry_IsPurchaseOnly);CivRegisterReplace<CivHooks::CvBuildingEntry_IsPurchaseOnly>(host, &ReplaceCvBuildingEntry_IsPurchaseOnly);

Code

1481/// Do we need to purchase this building (i.e. can't be built)?1482bool CvBuildingEntry::IsPurchaseOnly() const1483{1484	return m_bPurchaseOnly;1485}

Called by