Bazaar developer reference

CvPromotionEntry::GetPrereqOrPromotion2() const

Defined in
CvPromotionClasses.cpp, line 846
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetPrereqOrPromotion2

Hooks

static bool BeforeCvPromotionEntry_GetPrereqOrPromotion2(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetPrereqOrPromotion2(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetPrereqOrPromotion2(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetPrereqOrPromotion2>(host, &BeforeCvPromotionEntry_GetPrereqOrPromotion2);CivRegisterAfter<CivHooks::CvPromotionEntry_GetPrereqOrPromotion2>(host, &AfterCvPromotionEntry_GetPrereqOrPromotion2);CivRegisterReplace<CivHooks::CvPromotionEntry_GetPrereqOrPromotion2>(host, &ReplaceCvPromotionEntry_GetPrereqOrPromotion2);

Code

845/// Accessor: Gets promotion 2 of an either/or promotion prerequisite.846int CvPromotionEntry::GetPrereqOrPromotion2() const847{848	return m_iPrereqOrPromotion2;849}

Called by