Bazaar developer reference

CvNotifications::GetNotificationType(int)

Defined in
CvNotifications.cpp, line 853
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationType
Added in
0.4.0

Hooks

static bool BeforeCvNotifications_GetNotificationType(CvNotifications* self, int iZeroBasedIndex, NotificationTypes& result);static void AfterCvNotifications_GetNotificationType(CvNotifications* self, int iZeroBasedIndex, NotificationTypes& result);static NotificationTypes ReplaceCvNotifications_GetNotificationType(NotificationTypes (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationType>(host, &BeforeCvNotifications_GetNotificationType);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationType>(host, &AfterCvNotifications_GetNotificationType);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationType>(host, &ReplaceCvNotifications_GetNotificationType);

Code

853NotificationTypes CvNotifications::GetNotificationType(int iZeroBasedIndex)854{855	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();856	return m_aNotifications[iRealIndex].m_eNotificationType;857}

Calls