Bazaar developer reference

CvNotifications::GetNotificationTurn(int)

Defined in
CvNotifications.cpp, line 841
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationTurn

Hooks

static bool BeforeCvNotifications_GetNotificationTurn(CvNotifications* self, int iZeroBasedIndex, int& result);static void AfterCvNotifications_GetNotificationTurn(CvNotifications* self, int iZeroBasedIndex, int& result);static int ReplaceCvNotifications_GetNotificationTurn(int (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationTurn>(host, &BeforeCvNotifications_GetNotificationTurn);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationTurn>(host, &AfterCvNotifications_GetNotificationTurn);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationTurn>(host, &ReplaceCvNotifications_GetNotificationTurn);

Code

841int CvNotifications::GetNotificationTurn(int iZeroBasedIndex)842{843	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();844	return m_aNotifications[iRealIndex].m_iTurn;845}

Calls

Called by