Bazaar developer reference

CvFeatureInfo::get3DAudioScriptFootstepIndex(int) const

Defined in
CvInfos.cpp, line 5140
Class
CvFeatureInfo
Hook name
CivHooks::CvFeatureInfo_get3DAudioScriptFootstepIndex

Hooks

static bool BeforeCvFeatureInfo_get3DAudioScriptFootstepIndex(const CvFeatureInfo* self, int i, int& result);static void AfterCvFeatureInfo_get3DAudioScriptFootstepIndex(const CvFeatureInfo* self, int i, int& result);static int ReplaceCvFeatureInfo_get3DAudioScriptFootstepIndex(int (*original)(const CvFeatureInfo*, int), const CvFeatureInfo* self, int i);CivRegisterBefore<CivHooks::CvFeatureInfo_get3DAudioScriptFootstepIndex>(host, &BeforeCvFeatureInfo_get3DAudioScriptFootstepIndex);CivRegisterAfter<CivHooks::CvFeatureInfo_get3DAudioScriptFootstepIndex>(host, &AfterCvFeatureInfo_get3DAudioScriptFootstepIndex);CivRegisterReplace<CivHooks::CvFeatureInfo_get3DAudioScriptFootstepIndex>(host, &ReplaceCvFeatureInfo_get3DAudioScriptFootstepIndex);

Code

5140int CvFeatureInfo::get3DAudioScriptFootstepIndex(int i) const5141{5142	//	CvAssertMsg(i < ?, "Index out of bounds");5143	CvAssertMsg(i > -1, "Index out of bounds");5144	return m_pi3DAudioScriptFootstepIndex ? m_pi3DAudioScriptFootstepIndex[i] : -1;5145}