Bazaar developer reference

CvPromotionEntry::SetCommandType(int)

Defined in
CvPromotionClasses.cpp, line 1270
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_SetCommandType

Hooks

static bool BeforeCvPromotionEntry_SetCommandType(CvPromotionEntry* self, int iNewType);static void AfterCvPromotionEntry_SetCommandType(CvPromotionEntry* self, int iNewType);static void ReplaceCvPromotionEntry_SetCommandType(void (*original)(CvPromotionEntry*, int), CvPromotionEntry* self, int iNewType);CivRegisterBefore<CivHooks::CvPromotionEntry_SetCommandType>(host, &BeforeCvPromotionEntry_SetCommandType);CivRegisterAfter<CivHooks::CvPromotionEntry_SetCommandType>(host, &AfterCvPromotionEntry_SetCommandType);CivRegisterReplace<CivHooks::CvPromotionEntry_SetCommandType>(host, &ReplaceCvPromotionEntry_SetCommandType);

Code

1269/// Sets the command type for this class.1270void CvPromotionEntry::SetCommandType(int iNewType)1271{1272	m_iCommandType = iNewType;1273}

Called by