Bazaar developer reference

CvPromotionEntry::SetPrereqOrPromotion1(int)

Defined in
CvPromotionClasses.cpp, line 840
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetPrereqOrPromotion1

Hooks

static bool BeforeCvPromotionEntry_SetPrereqOrPromotion1(CvPromotionEntry* self, int i);static void AfterCvPromotionEntry_SetPrereqOrPromotion1(CvPromotionEntry* self, int i);static void ReplaceCvPromotionEntry_SetPrereqOrPromotion1(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int i);CivRegisterBefore<CivHooks::CvPromotionEntry_SetPrereqOrPromotion1>(host, &BeforeCvPromotionEntry_SetPrereqOrPromotion1);CivRegisterAfter<CivHooks::CvPromotionEntry_SetPrereqOrPromotion1>(host, &AfterCvPromotionEntry_SetPrereqOrPromotion1);CivRegisterReplace<CivHooks::CvPromotionEntry_SetPrereqOrPromotion1>(host, &ReplaceCvPromotionEntry_SetPrereqOrPromotion1);

Code

839/// Accessor: Sets promotion 1 of an either/or promotion prerequisite.840void CvPromotionEntry::SetPrereqOrPromotion1(int i)841{842	m_iPrereqOrPromotion1 = i;843}