Bazaar developer reference

CvNotifications::GetNotificationSummary(int)

Defined in
CvNotifications.cpp, line 828
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationSummary

Hooks

static bool BeforeCvNotifications_GetNotificationSummary(CvNotifications* self, int iZeroBasedIndex, CvString& result);static void AfterCvNotifications_GetNotificationSummary(CvNotifications* self, int iZeroBasedIndex, CvString& result);static CvString ReplaceCvNotifications_GetNotificationSummary(CvString (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationSummary>(host, &BeforeCvNotifications_GetNotificationSummary);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationSummary>(host, &AfterCvNotifications_GetNotificationSummary);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationSummary>(host, &ReplaceCvNotifications_GetNotificationSummary);

Code

828CvString CvNotifications::GetNotificationSummary(int iZeroBasedIndex)829{830	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();831	return m_aNotifications[iRealIndex].m_strSummary;832}

Calls

Called by