Bazaar developer reference

CvPromotionEntry::SetPrereqOrPromotion2(int)

Defined in
CvPromotionClasses.cpp, line 852
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetPrereqOrPromotion2

Hooks

static bool BeforeCvPromotionEntry_SetPrereqOrPromotion2(CvPromotionEntry* self, int i);static void AfterCvPromotionEntry_SetPrereqOrPromotion2(CvPromotionEntry* self, int i);static void ReplaceCvPromotionEntry_SetPrereqOrPromotion2(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int i);CivRegisterBefore<CivHooks::CvPromotionEntry_SetPrereqOrPromotion2>(host, &BeforeCvPromotionEntry_SetPrereqOrPromotion2);CivRegisterAfter<CivHooks::CvPromotionEntry_SetPrereqOrPromotion2>(host, &AfterCvPromotionEntry_SetPrereqOrPromotion2);CivRegisterReplace<CivHooks::CvPromotionEntry_SetPrereqOrPromotion2>(host, &ReplaceCvPromotionEntry_SetPrereqOrPromotion2);

Code

851/// Accessor: Sets promotion 2 of an either/or promotion prerequisite.852void CvPromotionEntry::SetPrereqOrPromotion2(int i)853{854	m_iPrereqOrPromotion2 = i;855}