Bazaar developer reference

CvEventLog::GetData1(int) const

Defined in
CvEventLog.cpp, line 199
Class
CvEventLog
Hook name
CivHooks::CvEventLog_GetData1

Hooks

static bool BeforeCvEventLog_GetData1(const CvEventLog* self, int iZeroBasedIndex, int& result);static void AfterCvEventLog_GetData1(const CvEventLog* self, int iZeroBasedIndex, int& result);static int ReplaceCvEventLog_GetData1(int (*original)(const CvEventLog*, int), const CvEventLog* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvEventLog_GetData1>(host, &BeforeCvEventLog_GetData1);CivRegisterAfter<CivHooks::CvEventLog_GetData1>(host, &AfterCvEventLog_GetData1);CivRegisterReplace<CivHooks::CvEventLog_GetData1>(host, &ReplaceCvEventLog_GetData1);

Code

199int CvEventLog::GetData1(int iZeroBasedIndex) const200{201	int iRealIndex = (m_iEventsBeginIndex + iZeroBasedIndex) % m_aEvents.size();202	return m_aEvents[iRealIndex].m_iData1;203}

Calls

Called by