Bazaar developer reference

CvNotifications::GetNotificationID(int)

Defined in
CvNotifications.cpp, line 835
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationID

Hooks

static bool BeforeCvNotifications_GetNotificationID(CvNotifications* self, int iZeroBasedIndex, int& result);static void AfterCvNotifications_GetNotificationID(CvNotifications* self, int iZeroBasedIndex, int& result);static int ReplaceCvNotifications_GetNotificationID(int (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationID>(host, &BeforeCvNotifications_GetNotificationID);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationID>(host, &AfterCvNotifications_GetNotificationID);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationID>(host, &ReplaceCvNotifications_GetNotificationID);

Code

835int CvNotifications::GetNotificationID(int iZeroBasedIndex)  // ignores begin/end values836{837	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();838	return m_aNotifications[iRealIndex].m_iLookupIndex;839}

Calls

Called by