class NotificationSystemSource
Constructors 1
void NotificationSystem()Referenced by InitInstance()
Constants 5
const int DEFAULT_TIME_DISPLAYED = 10const float NOTIFICATION_FADE_TIME = 3.0Referenced by NotificationUI.Update()
protected static const string JSON_FILE_PATH = "scripts/data/notifications.json"Referenced by LoadNotificationData()
protected static const int MAX_NOTIFICATIONS = 5Members 7
protected static ref NotificationSystem m_InstanceReferenced by AddNotification(), AddNotificationExtended(), CleanupInstance()
Show 4 more
, GetInstance(), InitInstance(), LoadNotificationData(), and Update()protected ref array<ref NotificationRuntimeData> m_TimeArrayReferenced by AddNotification(), AddNotificationExtended(), NotificationSystem()
Show 1 more
, Update()protected ref array<ref NotificationRuntimeData> m_DeferredArrayReferenced by AddNotification(), AddNotificationExtended(), NotificationSystem()
Show 1 more
, Update()protected ref map<NotificationType, ref NotificationData> m_DataArrayprotected float m_TimeElapsedref ScriptInvoker m_OnNotificationAdded = new ScriptInvoker()Referenced by AddNotification(), AddNotificationExtended(), Update()
Show 2 more
, NotificationUI.~NotificationUI(), and NotificationUI.NotificationUI()ref ScriptInvoker m_OnNotificationRemoved = new ScriptInvoker()Methods 12
static void InitInstance()Referenced by DayZGame.InitNotifications()
static NotificationSystem GetInstance()References m_Instance
static void SendNotificationToPlayerExtended(Man player, float show_time, string title_text, string detail_text = "", string icon = "")Send custom notification to player from server
player- the target player to send notification to
show_time- amount of time this notification is displayed
title_text- the title text that is displayed in the notification
detail_text- additional text that can be added to the notification under the title - will not display additional text if not set
icon- the icon that is displayed in the notification - will use default icon if not set
static void SendNotificationToPlayerIdentityExtended(PlayerIdentity player, float show_time, string title_text, string detail_text = "", string icon = "")Send custom notification to player identity from server
player- the target player to send notification to - if null, will send to all players
show_time- amount of time this notification is displayed
title_text- the title text that is displayed in the notification
detail_text- additional text that can be added to the notification under the title - will not display additional text if not set
icon- the icon that is displayed in the notification - will use default icon if not set
Referenced by SendNotificationToPlayerExtended()
static void SendNotificationToPlayer(Man player, NotificationType type, float show_time, string detail_text = "")Send notification from default types to player from server
player- the target player to send notification to
type- the type of notification to send - these can be viewed in /Scripts/Data/Notifications.json
show_time- amount of time this notification is displayed
detail_text- additional text that can be added to the notification under the title - will not display additional text if not set
static void SendNotificationToPlayerIdentity(PlayerIdentity player, NotificationType type, float show_time, string detail_text = "")Send notification from default types to player identity from server
player- the target player to send notification to - if null, will send to all players
type- the type of notification to send - these can be viewed in /Scripts/Data/Notifications.json
show_time- amount of time this notification is displayed
detail_text- additional text that can be added to the notification under the title - will not display additional text if not set
Referenced by SendNotificationToPlayer()
static void AddNotification(NotificationType type, float show_time, string detail_text = "")Send notification from default types to local player
type- the type of notification to send - these can be viewed in /Scripts/Data/Notifications.json
show_time- amount of time this notification is displayed
detail_text- additional text that can be added to the notification under the title - will not display additional text if not set
static void AddNotificationExtended(float show_time, string title_text, string detail_text = "", string icon = "")Send custom notification from to local player
show_time- amount of time this notification is displayed
title_text- the title text that is displayed in the notification
detail_text- additional text that can be added to the notification under the title - will not display additional text if not set
icon- the icon that is displayed in the notification - will use default icon if not set
Referenced by DayZGame.OnRPC()
static void Update(float timeslice)References array.Count(), array.Get(), DayZGame.GetGameState()
Show 15 more
, NotificationRuntimeData.GetRemainingTime(), array.Insert(), array.Insert(), ScriptInvoker.Invoke(), ScriptInvoker.Invoke(), array.Remove(), array.RemoveItem(), NotificationRuntimeData.UpdateRemainingTime(), m_DeferredArray, m_Instance, m_OnNotificationAdded, m_OnNotificationRemoved, m_TimeArray, m_TimeElapsed, and UPDATE_INTERVAL_THRESHOLDReferenced by DayZGame.OnUpdate()
protected NotificationData GetNotificationData(NotificationType type)Referenced by AddNotification()
static void LoadNotificationData()References map.Copy(), map.Count(), array.Count()
Show 11 more
, ErrorEx(), map.GetKey(), map.Insert(), array.Insert(), LoadFile(), new NotificationData(), array.RemoveItem(), SaveFile(), JSON_FILE_PATH, m_DataArray, and m_InstanceReferenced by InitInstance()