Bazaar developer reference

CvUnitPromotions::Reset()

Defined in
CvPromotionClasses.cpp, line 2182
Class
CvUnitPromotions
Hook name
CivHooks::CvUnitPromotions_Reset

Hooks

static bool BeforeCvUnitPromotions_Reset(CvUnitPromotions* self);static void AfterCvUnitPromotions_Reset(CvUnitPromotions* self);static void ReplaceCvUnitPromotions_Reset(void (*original)(CvUnitPromotions*), CvUnitPromotions* self);CivRegisterBefore<CivHooks::CvUnitPromotions_Reset>(host, &BeforeCvUnitPromotions_Reset);CivRegisterAfter<CivHooks::CvUnitPromotions_Reset>(host, &AfterCvUnitPromotions_Reset);CivRegisterReplace<CivHooks::CvUnitPromotions_Reset>(host, &ReplaceCvUnitPromotions_Reset);

Code

2181/// Reset unit promotion array to all false2182void CvUnitPromotions::Reset()2183{2184	m_kHasPromotion.SetSize(0);2185}

Calls

Called by