Bazaar developer reference

CvGlobals::getControlInfo(ControlTypes)

Defined in
CvGlobals.cpp, line 3441
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getControlInfo_with_ControlTypes

Hooks

static bool BeforeCvGlobals_getControlInfo_with_ControlTypes(CvGlobals* self, ControlTypes eControlNum, CvControlInfo*& result);static void AfterCvGlobals_getControlInfo_with_ControlTypes(CvGlobals* self, ControlTypes eControlNum, CvControlInfo*& result);static CvControlInfo* ReplaceCvGlobals_getControlInfo_with_ControlTypes(CvControlInfo* (*original)(CvGlobals*, ControlTypes), CvGlobals* self, ControlTypes eControlNum);CivRegisterBefore<CivHooks::CvGlobals_getControlInfo_with_ControlTypes>(host, &BeforeCvGlobals_getControlInfo_with_ControlTypes);CivRegisterAfter<CivHooks::CvGlobals_getControlInfo_with_ControlTypes>(host, &AfterCvGlobals_getControlInfo_with_ControlTypes);CivRegisterReplace<CivHooks::CvGlobals_getControlInfo_with_ControlTypes>(host, &ReplaceCvGlobals_getControlInfo_with_ControlTypes);

Code

3441CvControlInfo* CvGlobals::getControlInfo(ControlTypes eControlNum)3442{3443	CvAssert(eControlNum > -1);3444	CvAssert(eControlNum < NUM_CONTROL_TYPES);3445	if(eControlNum > -1 && eControlNum < (int)m_paControlInfo.size())3446		return m_paControlInfo[eControlNum];3447	else3448		return NULL;3449}

Calls

Called by