Bazaar developer reference

CvNotifications::IncrementEndIndex()

Defined in
CvNotifications.cpp, line 2160
Class
CvNotifications
Hook name
CivHooks::CvNotifications_IncrementEndIndex

Hooks

static bool BeforeCvNotifications_IncrementEndIndex(CvNotifications* self);static void AfterCvNotifications_IncrementEndIndex(CvNotifications* self);static void ReplaceCvNotifications_IncrementEndIndex(void (*original)(CvNotifications*), CvNotifications* self);CivRegisterBefore<CivHooks::CvNotifications_IncrementEndIndex>(host, &BeforeCvNotifications_IncrementEndIndex);CivRegisterAfter<CivHooks::CvNotifications_IncrementEndIndex>(host, &AfterCvNotifications_IncrementEndIndex);CivRegisterReplace<CivHooks::CvNotifications_IncrementEndIndex>(host, &ReplaceCvNotifications_IncrementEndIndex);

Code

2160void CvNotifications::IncrementEndIndex()2161{2162	m_iNotificationsEndIndex++;2163	if(m_iNotificationsEndIndex >= (int)m_aNotifications.size())2164	{2165		m_iNotificationsEndIndex = 0;2166	}2167}

Calls

Called by