Bazaar developer reference

CvNotifications::GetNotificationStr(int)

Defined in
CvNotifications.cpp, line 822
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationStr

Hooks

static bool BeforeCvNotifications_GetNotificationStr(CvNotifications* self, int iZeroBasedIndex, CvString& result);static void AfterCvNotifications_GetNotificationStr(CvNotifications* self, int iZeroBasedIndex, CvString& result);static CvString ReplaceCvNotifications_GetNotificationStr(CvString (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationStr>(host, &BeforeCvNotifications_GetNotificationStr);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationStr>(host, &AfterCvNotifications_GetNotificationStr);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationStr>(host, &ReplaceCvNotifications_GetNotificationStr);

Code

822CvString CvNotifications::GetNotificationStr(int iZeroBasedIndex)  // ignores the begin/end values823{824	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();825	return m_aNotifications[iRealIndex].m_strMessage;826}

Calls

Called by