Bazaar developer reference

CvEventLog::GetData2(int) const

Defined in
CvEventLog.cpp, line 205
Class
CvEventLog
Hook name
CivHooks::CvEventLog_GetData2

Hooks

static bool BeforeCvEventLog_GetData2(const CvEventLog* self, int iZeroBasedIndex, int& result);static void AfterCvEventLog_GetData2(const CvEventLog* self, int iZeroBasedIndex, int& result);static int ReplaceCvEventLog_GetData2(int (*original)(const CvEventLog*, int), const CvEventLog* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvEventLog_GetData2>(host, &BeforeCvEventLog_GetData2);CivRegisterAfter<CivHooks::CvEventLog_GetData2>(host, &AfterCvEventLog_GetData2);CivRegisterReplace<CivHooks::CvEventLog_GetData2>(host, &ReplaceCvEventLog_GetData2);

Code

205int CvEventLog::GetData2(int iZeroBasedIndex) const206{207	int iRealIndex = (m_iEventsBeginIndex + iZeroBasedIndex) % m_aEvents.size();208	return m_aEvents[iRealIndex].m_iData2;209}

Calls

Called by