Bazaar developer reference

CvPromotionEntry::SetPrereqOrPromotion7(int)

Defined in
CvPromotionClasses.cpp, line 912
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetPrereqOrPromotion7

Hooks

static bool BeforeCvPromotionEntry_SetPrereqOrPromotion7(CvPromotionEntry* self, int i);static void AfterCvPromotionEntry_SetPrereqOrPromotion7(CvPromotionEntry* self, int i);static void ReplaceCvPromotionEntry_SetPrereqOrPromotion7(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int i);CivRegisterBefore<CivHooks::CvPromotionEntry_SetPrereqOrPromotion7>(host, &BeforeCvPromotionEntry_SetPrereqOrPromotion7);CivRegisterAfter<CivHooks::CvPromotionEntry_SetPrereqOrPromotion7>(host, &AfterCvPromotionEntry_SetPrereqOrPromotion7);CivRegisterReplace<CivHooks::CvPromotionEntry_SetPrereqOrPromotion7>(host, &ReplaceCvPromotionEntry_SetPrereqOrPromotion7);

Code

911/// Accessor: Sets promotion 7 of an either/or promotion prerequisite.912void CvPromotionEntry::SetPrereqOrPromotion7(int i)913{914	m_iPrereqOrPromotion7 = i;915}