Bazaar developer reference

CvNotifications::RemoveOldestNotification()

Defined in
CvNotifications.cpp, line 2140
Class
CvNotifications
Hook name
CivHooks::CvNotifications_RemoveOldestNotification

Hooks

static bool BeforeCvNotifications_RemoveOldestNotification(CvNotifications* self);static void AfterCvNotifications_RemoveOldestNotification(CvNotifications* self);static void ReplaceCvNotifications_RemoveOldestNotification(void (*original)(CvNotifications*), CvNotifications* self);CivRegisterBefore<CivHooks::CvNotifications_RemoveOldestNotification>(host, &BeforeCvNotifications_RemoveOldestNotification);CivRegisterAfter<CivHooks::CvNotifications_RemoveOldestNotification>(host, &AfterCvNotifications_RemoveOldestNotification);CivRegisterReplace<CivHooks::CvNotifications_RemoveOldestNotification>(host, &ReplaceCvNotifications_RemoveOldestNotification);

Code

2140void CvNotifications::RemoveOldestNotification()2141{2142	// if the notification is somehow active, dismiss it2143	if(!m_aNotifications[m_iNotificationsBeginIndex].m_bDismissed)2144	{2145		Dismiss(m_aNotifications[m_iNotificationsBeginIndex].m_iLookupIndex, /*bUserInvoked*/ false);2146	}2147	m_aNotifications[m_iNotificationsBeginIndex].Clear();2148	IncrementBeginIndex();2149}

Calls

Called by