Bazaar developer reference

CvPromotionEntry::SetPrereqOrPromotion8(int)

Defined in
CvPromotionClasses.cpp, line 924
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetPrereqOrPromotion8

Hooks

static bool BeforeCvPromotionEntry_SetPrereqOrPromotion8(CvPromotionEntry* self, int i);static void AfterCvPromotionEntry_SetPrereqOrPromotion8(CvPromotionEntry* self, int i);static void ReplaceCvPromotionEntry_SetPrereqOrPromotion8(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int i);CivRegisterBefore<CivHooks::CvPromotionEntry_SetPrereqOrPromotion8>(host, &BeforeCvPromotionEntry_SetPrereqOrPromotion8);CivRegisterAfter<CivHooks::CvPromotionEntry_SetPrereqOrPromotion8>(host, &AfterCvPromotionEntry_SetPrereqOrPromotion8);CivRegisterReplace<CivHooks::CvPromotionEntry_SetPrereqOrPromotion8>(host, &ReplaceCvPromotionEntry_SetPrereqOrPromotion8);

Code

923/// Accessor: Sets promotion 8 of an either/or promotion prerequisite.924void CvPromotionEntry::SetPrereqOrPromotion8(int i)925{926	m_iPrereqOrPromotion8 = i;927}