Bazaar developer reference

CvNotifications::GetNotificationExtraGameData(int)

Defined in
CvNotifications.cpp, line 859
Class
CvNotifications
Hook name
CivHooks::CvNotifications_GetNotificationExtraGameData
Added in
0.4.0

Hooks

static bool BeforeCvNotifications_GetNotificationExtraGameData(CvNotifications* self, int iZeroBasedIndex, int& result);static void AfterCvNotifications_GetNotificationExtraGameData(CvNotifications* self, int iZeroBasedIndex, int& result);static int ReplaceCvNotifications_GetNotificationExtraGameData(int (*original)(CvNotifications*, int), CvNotifications* self, int iZeroBasedIndex);CivRegisterBefore<CivHooks::CvNotifications_GetNotificationExtraGameData>(host, &BeforeCvNotifications_GetNotificationExtraGameData);CivRegisterAfter<CivHooks::CvNotifications_GetNotificationExtraGameData>(host, &AfterCvNotifications_GetNotificationExtraGameData);CivRegisterReplace<CivHooks::CvNotifications_GetNotificationExtraGameData>(host, &ReplaceCvNotifications_GetNotificationExtraGameData);

Code

859int CvNotifications::GetNotificationExtraGameData(int iZeroBasedIndex)860{861	int iRealIndex = (m_iNotificationsBeginIndex + iZeroBasedIndex) % m_aNotifications.size();862	return m_aNotifications[iRealIndex].m_iExtraGameData;863}

Calls