Bazaar developer reference

CvPromotionEntry::SetPrereqOrPromotion4(int)

Defined in
CvPromotionClasses.cpp, line 876
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetPrereqOrPromotion4

Hooks

static bool BeforeCvPromotionEntry_SetPrereqOrPromotion4(CvPromotionEntry* self, int i);static void AfterCvPromotionEntry_SetPrereqOrPromotion4(CvPromotionEntry* self, int i);static void ReplaceCvPromotionEntry_SetPrereqOrPromotion4(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int i);CivRegisterBefore<CivHooks::CvPromotionEntry_SetPrereqOrPromotion4>(host, &BeforeCvPromotionEntry_SetPrereqOrPromotion4);CivRegisterAfter<CivHooks::CvPromotionEntry_SetPrereqOrPromotion4>(host, &AfterCvPromotionEntry_SetPrereqOrPromotion4);CivRegisterReplace<CivHooks::CvPromotionEntry_SetPrereqOrPromotion4>(host, &ReplaceCvPromotionEntry_SetPrereqOrPromotion4);

Code

875/// Accessor: Sets promotion 4 of an either/or promotion prerequisite.876void CvPromotionEntry::SetPrereqOrPromotion4(int i)877{878	m_iPrereqOrPromotion4 = i;879}