Bazaar developer reference

CvPromotionEntry::SetPrereqOrPromotion3(int)

Defined in
CvPromotionClasses.cpp, line 864
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetPrereqOrPromotion3

Hooks

static bool BeforeCvPromotionEntry_SetPrereqOrPromotion3(CvPromotionEntry* self, int i);static void AfterCvPromotionEntry_SetPrereqOrPromotion3(CvPromotionEntry* self, int i);static void ReplaceCvPromotionEntry_SetPrereqOrPromotion3(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int i);CivRegisterBefore<CivHooks::CvPromotionEntry_SetPrereqOrPromotion3>(host, &BeforeCvPromotionEntry_SetPrereqOrPromotion3);CivRegisterAfter<CivHooks::CvPromotionEntry_SetPrereqOrPromotion3>(host, &AfterCvPromotionEntry_SetPrereqOrPromotion3);CivRegisterReplace<CivHooks::CvPromotionEntry_SetPrereqOrPromotion3>(host, &ReplaceCvPromotionEntry_SetPrereqOrPromotion3);

Code

863/// Accessor: Sets promotion 3 of an either/or promotion prerequisite.864void CvPromotionEntry::SetPrereqOrPromotion3(int i)865{866	m_iPrereqOrPromotion3 = i;867}