Bazaar developer reference

CvEventLog::GetData3(int) const

Defined in
CvEventLog.cpp, line 211
Class
CvEventLog
Hook name
CivHooks::CvEventLog_GetData3

Hooks

static bool BeforeCvEventLog_GetData3(const CvEventLog* self, int iZeroBasedIndex, int& result);static void AfterCvEventLog_GetData3(const CvEventLog* self, int iZeroBasedIndex, int& result);static int ReplaceCvEventLog_GetData3(int (*original)(const CvEventLog*, int), const CvEventLog* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvEventLog_GetData3>(host, &BeforeCvEventLog_GetData3);CivRegisterAfter<CivHooks::CvEventLog_GetData3>(host, &AfterCvEventLog_GetData3);CivRegisterReplace<CivHooks::CvEventLog_GetData3>(host, &ReplaceCvEventLog_GetData3);

Code

211int CvEventLog::GetData3(int iZeroBasedIndex) const212{213	int iRealIndex = (m_iEventsBeginIndex + iZeroBasedIndex) % m_aEvents.size();214	return m_aEvents[iRealIndex].m_iData3;215}

Calls

Called by