Bazaar developer reference

CvNotifications::Notification::Clear()

Defined in
CvNotifications.cpp, line 220
Class
CvNotifications::Notification
Hook name
CivHooks::CvNotifications_Notification_Clear

Hooks

static bool BeforeCvNotifications_Notification_Clear(CvNotifications::Notification* self);static void AfterCvNotifications_Notification_Clear(CvNotifications::Notification* self);static void ReplaceCvNotifications_Notification_Clear(void (*original)(CvNotifications::Notification*), CvNotifications::Notification* self);CivRegisterBefore<CivHooks::CvNotifications_Notification_Clear>(host, &BeforeCvNotifications_Notification_Clear);CivRegisterAfter<CivHooks::CvNotifications_Notification_Clear>(host, &AfterCvNotifications_Notification_Clear);CivRegisterReplace<CivHooks::CvNotifications_Notification_Clear>(host, &ReplaceCvNotifications_Notification_Clear);

Code

220void CvNotifications::Notification::Clear()221{222	m_eNotificationType = NO_NOTIFICATION_TYPE;223	m_strMessage = "";224	m_strSummary = "";225	m_iX = -1;226	m_iY = -1;227	m_iGameDataIndex = -1;228	m_iTurn = -1;229	m_iLookupIndex = -1;230	m_bNeedsBroadcast = false;231	m_bDismissed = false;232	m_bWaitExtraTurn = false;233}

Calls

Called by