Bazaar developer reference

CvPromotionEntry::IsCannotBeChosen() const

Defined in
CvPromotionClasses.cpp, line 1406
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsCannotBeChosen

Hooks

static bool BeforeCvPromotionEntry_IsCannotBeChosen(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsCannotBeChosen(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsCannotBeChosen(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsCannotBeChosen>(host, &BeforeCvPromotionEntry_IsCannotBeChosen);CivRegisterAfter<CivHooks::CvPromotionEntry_IsCannotBeChosen>(host, &AfterCvPromotionEntry_IsCannotBeChosen);CivRegisterReplace<CivHooks::CvPromotionEntry_IsCannotBeChosen>(host, &ReplaceCvPromotionEntry_IsCannotBeChosen);

Code

1405/// Accessor: Can this Promotion be earned through normal leveling?1406bool CvPromotionEntry::IsCannotBeChosen() const1407{1408	return m_bCannotBeChosen;1409}

Called by