Bazaar developer reference

CvNotifications::Rebroadcast()

Defined in
CvNotifications.cpp, line 633
Class
CvNotifications
Hook name
CivHooks::CvNotifications_Rebroadcast

Hooks

static bool BeforeCvNotifications_Rebroadcast(CvNotifications* self);static void AfterCvNotifications_Rebroadcast(CvNotifications* self);static void ReplaceCvNotifications_Rebroadcast(void (*original)(CvNotifications*), CvNotifications* self);CivRegisterBefore<CivHooks::CvNotifications_Rebroadcast>(host, &BeforeCvNotifications_Rebroadcast);CivRegisterAfter<CivHooks::CvNotifications_Rebroadcast>(host, &AfterCvNotifications_Rebroadcast);CivRegisterReplace<CivHooks::CvNotifications_Rebroadcast>(host, &ReplaceCvNotifications_Rebroadcast);

Code

633void CvNotifications::Rebroadcast(void)634{635	int iIndex = m_iNotificationsBeginIndex;636	while(iIndex != m_iNotificationsEndIndex)637	{638		if(!m_aNotifications[iIndex].m_bDismissed)639		{640			m_aNotifications[iIndex].m_bNeedsBroadcast = true;641		}642643		iIndex++;644		if(iIndex >= (int)m_aNotifications.size())645		{646			iIndex = 0;647		}648	}649}

Calls

Called by