Bazaar developer reference

CvEventLog::RemoveOldestEvent()

Defined in
CvEventLog.cpp, line 242
Class
CvEventLog
Hook name
CivHooks::CvEventLog_RemoveOldestEvent

Hooks

static bool BeforeCvEventLog_RemoveOldestEvent(CvEventLog* self);static void AfterCvEventLog_RemoveOldestEvent(CvEventLog* self);static void ReplaceCvEventLog_RemoveOldestEvent(void (*original)(CvEventLog*), CvEventLog* self);CivRegisterBefore<CivHooks::CvEventLog_RemoveOldestEvent>(host, &BeforeCvEventLog_RemoveOldestEvent);CivRegisterAfter<CivHooks::CvEventLog_RemoveOldestEvent>(host, &AfterCvEventLog_RemoveOldestEvent);CivRegisterReplace<CivHooks::CvEventLog_RemoveOldestEvent>(host, &ReplaceCvEventLog_RemoveOldestEvent);

Code

242void CvEventLog::RemoveOldestEvent()243{244	m_aEvents[m_iEventsBeginIndex].Clear();245	IncrementBeginIndex();246}

Calls

Called by