Bazaar developer reference

CvPromotionEntry::GetPrereqPromotion() const

Defined in
CvPromotionClasses.cpp, line 822
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetPrereqPromotion

Hooks

static bool BeforeCvPromotionEntry_GetPrereqPromotion(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetPrereqPromotion(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetPrereqPromotion(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetPrereqPromotion>(host, &BeforeCvPromotionEntry_GetPrereqPromotion);CivRegisterAfter<CivHooks::CvPromotionEntry_GetPrereqPromotion>(host, &AfterCvPromotionEntry_GetPrereqPromotion);CivRegisterReplace<CivHooks::CvPromotionEntry_GetPrereqPromotion>(host, &ReplaceCvPromotionEntry_GetPrereqPromotion);

Code

821/// Accessor: The promotion required before this promotion is available822int CvPromotionEntry::GetPrereqPromotion() const823{824	return m_iPrereqPromotion;825}

Called by