Bazaar developer reference

CvPromotionEntry::SetPrereqOrPromotion5(int)

Defined in
CvPromotionClasses.cpp, line 888
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetPrereqOrPromotion5

Hooks

static bool BeforeCvPromotionEntry_SetPrereqOrPromotion5(CvPromotionEntry* self, int i);static void AfterCvPromotionEntry_SetPrereqOrPromotion5(CvPromotionEntry* self, int i);static void ReplaceCvPromotionEntry_SetPrereqOrPromotion5(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int i);CivRegisterBefore<CivHooks::CvPromotionEntry_SetPrereqOrPromotion5>(host, &BeforeCvPromotionEntry_SetPrereqOrPromotion5);CivRegisterAfter<CivHooks::CvPromotionEntry_SetPrereqOrPromotion5>(host, &AfterCvPromotionEntry_SetPrereqOrPromotion5);CivRegisterReplace<CivHooks::CvPromotionEntry_SetPrereqOrPromotion5>(host, &ReplaceCvPromotionEntry_SetPrereqOrPromotion5);

Code

887/// Accessor: Sets promotion 5 of an either/or promotion prerequisite.888void CvPromotionEntry::SetPrereqOrPromotion5(int i)889{890	m_iPrereqOrPromotion5 = i;891}