Bazaar developer reference

CvPromotionEntry::IsNoSupply() const

Defined in
CvPromotionClasses.cpp, line 1277
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsNoSupply

Hooks

static bool BeforeCvPromotionEntry_IsNoSupply(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsNoSupply(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsNoSupply(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsNoSupply>(host, &BeforeCvPromotionEntry_IsNoSupply);CivRegisterAfter<CivHooks::CvPromotionEntry_IsNoSupply>(host, &AfterCvPromotionEntry_IsNoSupply);CivRegisterReplace<CivHooks::CvPromotionEntry_IsNoSupply>(host, &ReplaceCvPromotionEntry_IsNoSupply);

Code

1275#if defined(MOD_UNITS_NO_SUPPLY)1276/// Accessor: Unit has no supply cost1277bool CvPromotionEntry::IsNoSupply() const1278{1279	return m_bNoSupply;1280}

Called by