|
static void | InitInstance () |
|
static void | CleanupInstance () |
|
static NotificationSystem | GetInstance () |
|
static void | SendNotificationToPlayerExtended (Man player, float show_time, string title_text, string detail_text="", string icon="") |
| Send custom notification to player from server.
|
|
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 | SendNotificationToPlayer (Man player, NotificationType type, float show_time, string detail_text="") |
| Send notification from default types to player from server.
|
|
static void | SendNotificationToPlayerIdentity (PlayerIdentity player, NotificationType type, float show_time, string detail_text="") |
| Send notification from default types to player identity from server.
|
|
static void | AddNotification (NotificationType type, float show_time, string detail_text="") |
| Send notification from default types to local player.
|
|
static void | AddNotificationExtended (float show_time, string title_text, string detail_text="", string icon="") |
| Send custom notification from to local player.
|
|
static void | Update (float timeslice) |
|
static void | LoadNotificationData () |
|
◆ NotificationSystem()
110 {
112
115 }
float m_TimeElapsed
Definition NotificationSystem.c:85
ref array< ref NotificationRuntimeData > m_TimeArray
Definition NotificationSystem.c:81
ref array< ref NotificationRuntimeData > m_DeferredArray
Definition NotificationSystem.c:82
Перекрестные ссылки m_DeferredArray, m_TimeArray и m_TimeElapsed.
Используется в InitInstance().
◆ AddNotification()
◆ AddNotificationExtended()
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 |
216 {
218 {
221
224 }
225 else
226 {
230 }
231 }
Definition NotificationData.c:2
Перекрестные ссылки m_Instance, MAX_NOTIFICATIONS и NotificationRuntimeData().
Используется в CGame::OnRPC().
◆ CleanupInstance()
◆ GetInstance()
◆ GetNotificationData()
273 {
276
278 }
ref map< NotificationType, ref NotificationData > m_DataArray
Definition NotificationSystem.c:83
Перекрестные ссылки m_DataArray.
◆ InitInstance()
◆ LoadNotificationData()
281 {
287
289
293 {
296 }
297
299 {
301 }
302
304 {
306 {
308 "please_add_an_icon",
309 "please_add_a_title",
310 "optional_description",
311 );
312
314 }
315
318 }
319 }
NotificationType
DEPRECATED (moved into NotificationSystem)
Definition NotificationSystem.c:4
static const string JSON_FILE_PATH
Definition NotificationSystem.c:74
Перекрестные ссылки ErrorEx, JSON_FILE_PATH и m_Instance.
◆ SendNotificationToPlayer()
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 |
161 {
163 {
165 }
166 }
static void SendNotificationToPlayerIdentity(PlayerIdentity player, NotificationType type, float show_time, string detail_text="")
Send notification from default types to player identity from server.
Definition NotificationSystem.c:175
Перекрестные ссылки SendNotificationToPlayerIdentity().
◆ SendNotificationToPlayerExtended()
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 |
126 {
128 {
130 }
131 }
static void SendNotificationToPlayerIdentityExtended(PlayerIdentity player, float show_time, string title_text, string detail_text="", string icon="")
Send custom notification to player identity from server.
Definition NotificationSystem.c:141
Перекрестные ссылки SendNotificationToPlayerIdentityExtended().
◆ SendNotificationToPlayerIdentity()
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 |
176 {
178
182
184 }
ERPCs
Definition ERPCs.c:2
Definition gameplay.c:105
Используется в SendNotificationToPlayer().
◆ SendNotificationToPlayerIdentityExtended()
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 |
Используется в SendNotificationToPlayerExtended().
◆ Update()
◆ DEFAULT_TIME_DISPLAYED
◆ JSON_FILE_PATH
◆ m_DataArray
◆ m_DeferredArray
◆ m_Instance
◆ m_OnNotificationAdded
◆ m_OnNotificationRemoved
◆ m_TimeArray
◆ m_TimeElapsed
◆ MAX_NOTIFICATIONS
◆ NOTIFICATION_FADE_TIME
◆ UPDATE_INTERVAL_THRESHOLD
Объявления и описания членов класса находятся в файле: