Bazaar developer reference

CvNotifications::GetNotificationX(int)

Defined in
CvNotifications.cpp, line 865
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationX
Added in
0.4.0

Hooks

static bool BeforeCvNotifications_GetNotificationX(CvNotifications* self, int iZeroBasedIndex, int& result);static void AfterCvNotifications_GetNotificationX(CvNotifications* self, int iZeroBasedIndex, int& result);static int ReplaceCvNotifications_GetNotificationX(int (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationX>(host, &BeforeCvNotifications_GetNotificationX);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationX>(host, &AfterCvNotifications_GetNotificationX);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationX>(host, &ReplaceCvNotifications_GetNotificationX);

Code

865int CvNotifications::GetNotificationX(int iZeroBasedIndex)866{867	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();868	return m_aNotifications[iRealIndex].m_iX;869}

Calls