Bazaar developer reference

CvEventLog::GetMessage(int) const

Defined in
CvEventLog.cpp, line 181
Class
CvEventLog
Hook name
CivHooks::CvEventLog_GetMessage

Hooks

static bool BeforeCvEventLog_GetMessage(const CvEventLog* self, int iZeroBasedIndex, CvString& result);static void AfterCvEventLog_GetMessage(const CvEventLog* self, int iZeroBasedIndex, CvString& result);static CvString ReplaceCvEventLog_GetMessage(CvString (*original)(const CvEventLog*, int), const CvEventLog* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvEventLog_GetMessage>(host, &BeforeCvEventLog_GetMessage);CivRegisterAfter<CivHooks::CvEventLog_GetMessage>(host, &AfterCvEventLog_GetMessage);CivRegisterReplace<CivHooks::CvEventLog_GetMessage>(host, &ReplaceCvEventLog_GetMessage);

Code

181CvString CvEventLog::GetMessage(int iZeroBasedIndex) const182{183	int iRealIndex = (m_iEventsBeginIndex + iZeroBasedIndex) % m_aEvents.size();184	return m_aEvents[iRealIndex].m_strMessage;185}

Calls

Called by