Bazaar developer reference

CvActionInfo::getControlType() const

Defined in
CvInfos.cpp, line 1128
Class
CvActionInfo
Hook name
CivHooks::CvActionInfo_getControlType

Hooks

static bool BeforeCvActionInfo_getControlType(const CvActionInfo* self, int& result);static void AfterCvActionInfo_getControlType(const CvActionInfo* self, int& result);static int ReplaceCvActionInfo_getControlType(int (*original)(const CvActionInfo*), const CvActionInfo* self);CivRegisterBefore<CivHooks::CvActionInfo_getControlType>(host, &BeforeCvActionInfo_getControlType);CivRegisterAfter<CivHooks::CvActionInfo_getControlType>(host, &AfterCvActionInfo_getControlType);CivRegisterReplace<CivHooks::CvActionInfo_getControlType>(host, &ReplaceCvActionInfo_getControlType);

Code

1128int CvActionInfo::getControlType() const1129{1130	if(ACTIONSUBTYPE_CONTROL == m_eSubType)1131	{1132		return m_iOriginalIndex;1133	}1134	return -1;1135}

Called by