Bazaar developer reference

CvNotifications::IncrementBeginIndex()

Defined in
CvNotifications.cpp, line 2151
Class
CvNotifications
Hook name
CivHooks::CvNotifications_IncrementBeginIndex

Hooks

static bool BeforeCvNotifications_IncrementBeginIndex(CvNotifications* self);static void AfterCvNotifications_IncrementBeginIndex(CvNotifications* self);static void ReplaceCvNotifications_IncrementBeginIndex(void (*original)(CvNotifications*), CvNotifications* self);CivRegisterBefore<CivHooks::CvNotifications_IncrementBeginIndex>(host, &BeforeCvNotifications_IncrementBeginIndex);CivRegisterAfter<CivHooks::CvNotifications_IncrementBeginIndex>(host, &AfterCvNotifications_IncrementBeginIndex);CivRegisterReplace<CivHooks::CvNotifications_IncrementBeginIndex>(host, &ReplaceCvNotifications_IncrementBeginIndex);

Code

2151void CvNotifications::IncrementBeginIndex()2152{2153	m_iNotificationsBeginIndex++;2154	if(m_iNotificationsBeginIndex >= (int)m_aNotifications.size())2155	{2156		m_iNotificationsBeginIndex = 0;2157	}2158}

Calls

Called by