Bazaar developer reference

CvNotifications::GetNotificationY(int)

Defined in
CvNotifications.cpp, line 871
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationY
Added in
0.4.0

Hooks

static bool BeforeCvNotifications_GetNotificationY(CvNotifications* self, int iZeroBasedIndex, int& result);static void AfterCvNotifications_GetNotificationY(CvNotifications* self, int iZeroBasedIndex, int& result);static int ReplaceCvNotifications_GetNotificationY(int (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationY>(host, &BeforeCvNotifications_GetNotificationY);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationY>(host, &AfterCvNotifications_GetNotificationY);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationY>(host, &ReplaceCvNotifications_GetNotificationY);

Code

871int CvNotifications::GetNotificationY(int iZeroBasedIndex)872{873	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();874	return m_aNotifications[iRealIndex].m_iY;875}

Calls