Bazaar developer reference

CvEventLog::GetData4(int) const

Defined in
CvEventLog.cpp, line 217
Class
CvEventLog
Hook name
CivHooks::CvEventLog_GetData4

Hooks

static bool BeforeCvEventLog_GetData4(const CvEventLog* self, int iZeroBasedIndex, int& result);static void AfterCvEventLog_GetData4(const CvEventLog* self, int iZeroBasedIndex, int& result);static int ReplaceCvEventLog_GetData4(int (*original)(const CvEventLog*, int), const CvEventLog* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvEventLog_GetData4>(host, &BeforeCvEventLog_GetData4);CivRegisterAfter<CivHooks::CvEventLog_GetData4>(host, &AfterCvEventLog_GetData4);CivRegisterReplace<CivHooks::CvEventLog_GetData4>(host, &ReplaceCvEventLog_GetData4);

Code

217int CvEventLog::GetData4(int iZeroBasedIndex) const218{219	int iRealIndex = (m_iEventsBeginIndex + iZeroBasedIndex) % m_aEvents.size();220	return m_aEvents[iRealIndex].m_iData4;221}

Calls

Called by