Bazaar developer reference

CvUnit::initPromotions()

Defined in
CvUnit.cpp, line 1284
Class
CvUnit
Hook name
CivHooks::CvUnit_initPromotions

Hooks

static bool BeforeCvUnit_initPromotions(CvUnit* self);static void AfterCvUnit_initPromotions(CvUnit* self);static void ReplaceCvUnit_initPromotions(void (*original)(CvUnit*), CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_initPromotions>(host, &BeforeCvUnit_initPromotions);CivRegisterAfter<CivHooks::CvUnit_initPromotions>(host, &AfterCvUnit_initPromotions);CivRegisterReplace<CivHooks::CvUnit_initPromotions>(host, &ReplaceCvUnit_initPromotions);

Code

1284void CvUnit::initPromotions()1285{1286	VALIDATE_OBJECT12871288	m_Promotions.Init(GC.GetGamePromotions(), this);1289}

Calls

Called by