Bazaar developer reference

CvEventLog::IncrementBeginIndex()

Defined in
CvEventLog.cpp, line 248
Class
CvEventLog
Hook name
CivHooks::CvEventLog_IncrementBeginIndex

Hooks

static bool BeforeCvEventLog_IncrementBeginIndex(CvEventLog* self);static void AfterCvEventLog_IncrementBeginIndex(CvEventLog* self);static void ReplaceCvEventLog_IncrementBeginIndex(void (*original)(CvEventLog*), CvEventLog* self);CivRegisterBefore<CivHooks::CvEventLog_IncrementBeginIndex>(host, &BeforeCvEventLog_IncrementBeginIndex);CivRegisterAfter<CivHooks::CvEventLog_IncrementBeginIndex>(host, &AfterCvEventLog_IncrementBeginIndex);CivRegisterReplace<CivHooks::CvEventLog_IncrementBeginIndex>(host, &ReplaceCvEventLog_IncrementBeginIndex);

Code

248void CvEventLog::IncrementBeginIndex()249{250	m_iEventsBeginIndex++;251	if (m_iEventsBeginIndex >= (int)m_aEvents.size())252	{253		m_iEventsBeginIndex = 0;254	}255}

Calls

Called by