CvNotifications::Init(PlayerTypes)
- Defined in
- CvNotifications.cpp, line 248
- Class
- CvNotifications
- Hook name
CivHooks::CvNotifications_Init
Hooks
static bool BeforeCvNotifications_Init(CvNotifications* self, PlayerTypes ePlayer);static void AfterCvNotifications_Init(CvNotifications* self, PlayerTypes ePlayer);static void ReplaceCvNotifications_Init(void (*original)(CvNotifications*, PlayerTypes), CvNotifications* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvNotifications_Init>(host, &BeforeCvNotifications_Init);CivRegisterAfter<CivHooks::CvNotifications_Init>(host, &AfterCvNotifications_Init);CivRegisterReplace<CivHooks::CvNotifications_Init>(host, &ReplaceCvNotifications_Init);
Code
247/// Init248void CvNotifications::Init(PlayerTypes ePlayer)249{250 Uninit();251 m_ePlayer = ePlayer;252253 m_aNotifications.resize(MAX_NOTIFICATIONS);254 for(uint ui = 0; ui < m_aNotifications.size(); ui++)255 {256 m_aNotifications[ui].Clear();257 }258 m_iNotificationsBeginIndex = 0;259 m_iNotificationsEndIndex = 0;260}
Calls
- CvNotifications::Notification::Clear()
- CvNotifications::Uninit()
std::vector::operator[]std::vector::resizestd::vector::size