Bazaar developer reference

CvNotifications::IsNotificationDismissed(int)

Defined in
CvNotifications.cpp, line 847
Class
CvNotifications
Hook name
CivHooks::CvNotifications_IsNotificationDismissed

Hooks

static bool BeforeCvNotifications_IsNotificationDismissed(CvNotifications* self, int iZeroBasedIndex, bool& result);static void AfterCvNotifications_IsNotificationDismissed(CvNotifications* self, int iZeroBasedIndex, bool& result);static bool ReplaceCvNotifications_IsNotificationDismissed(bool (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_IsNotificationDismissed>(host, &BeforeCvNotifications_IsNotificationDismissed);CivRegisterAfter<CivHooks::CvNotifications_IsNotificationDismissed>(host, &AfterCvNotifications_IsNotificationDismissed);CivRegisterReplace<CivHooks::CvNotifications_IsNotificationDismissed>(host, &ReplaceCvNotifications_IsNotificationDismissed);

Code

847bool CvNotifications::IsNotificationDismissed(int iZeroBasedIndex)848{849	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();850	return m_aNotifications[iRealIndex].m_bDismissed;851}

Calls

Called by