CvNotifications::Activate(int)
- Defined in
- CvNotifications.cpp, line 504
- Class
- CvNotifications
- Hook name
CivHooks::CvNotifications_Activate
Hooks
static bool BeforeCvNotifications_Activate(CvNotifications* self, int iLookupIndex);static void AfterCvNotifications_Activate(CvNotifications* self, int iLookupIndex);static void ReplaceCvNotifications_Activate(void (*original)(CvNotifications*, int), CvNotifications* self, int iLookupIndex);CivRegisterBefore<CivHooks::CvNotifications_Activate>(host, &BeforeCvNotifications_Activate);CivRegisterAfter<CivHooks::CvNotifications_Activate>(host, &AfterCvNotifications_Activate);CivRegisterReplace<CivHooks::CvNotifications_Activate>(host, &ReplaceCvNotifications_Activate);
Code
504void CvNotifications::Activate(int iLookupIndex)505{506 int iIndex = m_iNotificationsBeginIndex;507 while(iIndex != m_iNotificationsEndIndex)508 {509 if(m_aNotifications[iIndex].m_iLookupIndex == iLookupIndex)510 {511 Activate(m_aNotifications[iIndex]);512 break;513 }514 iIndex++;515 if(iIndex >= (int)m_aNotifications.size())516 {517 iIndex = 0;518 }519 }520}
Calls
- CvNotifications::Activate(Notification &)
std::vector::operator[]std::vector::size