74 protected static const string JSON_FILE_PATH =
"scripts/data/notifications.json";
302 "please_add_an_icon",
303 "please_add_a_title",
304 "optional_description",
NotificationType
DEPRECATED (moved into NotificationSystem)
@ INVITE_FAIL_SAME_SERVER
static const float NOTIFICATION_FADE_TIME
void NotificationRuntimeData(float time, NotificationData data, string detail_text)
void SetTime(float time)
DEPRECATED.
void UpdateRemainingTime(float updateInterval)
enum NotificationType m_StaticData
ref ScriptInvoker m_OnNotificationAdded
static const string JSON_FILE_PATH
static void LoadNotificationData()
ref ScriptInvoker m_OnNotificationRemoved
NotificationData GetNotificationData(NotificationType type)
static void SendNotificationToPlayer(Man player, NotificationType type, float show_time, string detail_text="")
Send notification from default types to player from server.
ref map< NotificationType, ref NotificationData > m_DataArray
const float NOTIFICATION_FADE_TIME
static void SendNotificationToPlayerExtended(Man player, float show_time, string title_text, string detail_text="", string icon="")
Send custom notification to player from server.
ref array< ref NotificationRuntimeData > m_DeferredArray
static const float UPDATE_INTERVAL_THRESHOLD
static void AddNotificationExtended(float show_time, string title_text, string detail_text="", string icon="")
Send custom notification from to local player.
static ref NotificationSystem m_Instance
static void InitInstance()
static NotificationSystem GetInstance()
static void CleanupInstance()
ref array< ref NotificationRuntimeData > m_TimeArray
static const int MAX_NOTIFICATIONS
static void SendNotificationToPlayerIdentity(PlayerIdentity player, NotificationType type, float show_time, string detail_text="")
Send notification from default types to player identity from server.
const int DEFAULT_TIME_DISPLAYED
void NotificationSystem()
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
static void SendNotificationToPlayerIdentityExtended(PlayerIdentity player, float show_time, string title_text, string detail_text="", string icon="")
Send custom notification to player identity from server.
static void Update(float timeslice)
The class that will be instanced (moddable)
ScriptInvoker Class provide list of callbacks usage: