Bazaar developer reference

CvPromotionEntry::GetPrereqOrPromotion1() const

Defined in
CvPromotionClasses.cpp, line 834
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetPrereqOrPromotion1

Hooks

static bool BeforeCvPromotionEntry_GetPrereqOrPromotion1(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetPrereqOrPromotion1(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetPrereqOrPromotion1(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetPrereqOrPromotion1>(host, &BeforeCvPromotionEntry_GetPrereqOrPromotion1);CivRegisterAfter<CivHooks::CvPromotionEntry_GetPrereqOrPromotion1>(host, &AfterCvPromotionEntry_GetPrereqOrPromotion1);CivRegisterReplace<CivHooks::CvPromotionEntry_GetPrereqOrPromotion1>(host, &ReplaceCvPromotionEntry_GetPrereqOrPromotion1);

Code

833/// Accessor: Gets promotion 1 of an either/or promotion prerequisite.834int CvPromotionEntry::GetPrereqOrPromotion1() const835{836	return m_iPrereqOrPromotion1;837}

Called by