|
| 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 () |
| |
Definition at line 69 of file notificationsystem.c.
◆ NotificationSystem()
| void NotificationSystem::NotificationSystem |
( |
| ) |
|
|
protected |
◆ AddNotification()
Send notification from default types to local player.
- Parameters
-
| 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 |
Definition at line 192 of file notificationsystem.c.
◆ AddNotificationExtended()
| static void NotificationSystem::AddNotificationExtended |
( |
float | show_time, |
|
|
string | title_text, |
|
|
string | detail_text = "", |
|
|
string | icon = "" ) |
|
staticprotected |
Send custom notification from to local player.
- Parameters
-
| 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 |
Definition at line 215 of file notificationsystem.c.
◆ CleanupInstance()
| static void NotificationSystem::CleanupInstance |
( |
| ) |
|
|
staticprotected |
◆ GetInstance()
◆ GetNotificationData()
◆ InitInstance()
| static void NotificationSystem::InitInstance |
( |
| ) |
|
|
staticprotected |
◆ LoadNotificationData()
| static void NotificationSystem::LoadNotificationData |
( |
| ) |
|
|
staticprotected |
◆ SendNotificationToPlayer()
| static void NotificationSystem::SendNotificationToPlayer |
( |
Man | player, |
|
|
NotificationType | type, |
|
|
float | show_time, |
|
|
string | detail_text = "" ) |
|
staticprotected |
Send notification from default types to player from server.
- Parameters
-
| 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 |
Definition at line 160 of file notificationsystem.c.
◆ SendNotificationToPlayerExtended()
| static void NotificationSystem::SendNotificationToPlayerExtended |
( |
Man | player, |
|
|
float | show_time, |
|
|
string | title_text, |
|
|
string | detail_text = "", |
|
|
string | icon = "" ) |
|
staticprotected |
Send custom notification to player from server.
- Parameters
-
| 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 |
Definition at line 125 of file notificationsystem.c.
◆ SendNotificationToPlayerIdentity()
Send notification from default types to player identity from server.
- Parameters
-
| 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 |
Definition at line 175 of file notificationsystem.c.
◆ SendNotificationToPlayerIdentityExtended()
Send custom notification to player identity from server.
- Parameters
-
| 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 |
Definition at line 141 of file notificationsystem.c.
◆ Update()
| static void NotificationSystem::Update |
( |
float | timeslice | ) |
|
|
staticprotected |
◆ JSON_FILE_PATH
| const string NotificationSystem::JSON_FILE_PATH = "scripts/data/notifications.json" |
|
staticprotected |
◆ m_DataArray
◆ m_DeferredArray
◆ m_Instance
◆ m_OnNotificationAdded
◆ m_OnNotificationRemoved
◆ m_TimeArray
◆ m_TimeElapsed
| float NotificationSystem::m_TimeElapsed |
|
protected |
◆ MAX_NOTIFICATIONS
| const int NotificationSystem::MAX_NOTIFICATIONS = 5 |
|
staticprotected |
The documentation for this class was generated from the following file: