Arma Reforger Script API
|
Framework for sending notifications to players. More...
Public Member Functions | |
ScriptInvoker | GetOnNotification () |
Get invoker called on player's machine when a notification is received. | |
int | GetHistoryNewToOld (out notnull array< SCR_NotificationData > outHistory) |
Get the list of previous notifications. | |
int | GetHistoryOldToNew (out notnull array< SCR_NotificationData > outHistory, int maxHistoryIndex=-1) |
Get the list of previous notifications. | |
bool | GetHistoryEntry (int index, out SCR_NotificationData data=null) |
Get the the specific history entry. | |
bool | GetLastNotificationLocation (out vector lastLocation) |
Get last ping location. | |
bool | SendToOwner (ENotification id, SCR_NotificationData data=null) |
Send notification to player who owns this player controller. | |
array< string > | GetStickyNotifications () |
Get Sticky notificatons Widget names from Config. | |
array< ref SCR_NotificationDisplayColor > | GetNotificationDisplayColor () |
Get Notification colors. | |
string | GetPlayerNameFromHistory (int playerID) |
Hotfix to Get player names when the name cannot be found anymore in the playerManager. | |
void | Update (float timeSlice) |
override void | OnPostInit (IEntity owner) |
override void | OnDelete (IEntity owner) |
Static Public Member Functions | |
static SCR_NotificationsComponent | GetInstance () |
Get local instance of the notifications system. | |
static bool | SendToEveryone (ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players. | |
static bool | SendToEveryone (ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players. | |
static bool | SendToPlayer (int playerID, ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to player with given ID. | |
static bool | SendToPlayer (int playerID, ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to player with given ID. | |
static bool | SendToFaction (notnull SCR_Faction faction, bool includeFriendlyFactions, ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to player with given ID. | |
static bool | SendToFaction (notnull SCR_Faction faction, bool includeFriendlyFactions, ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to player with given ID. | |
static bool | SendToUnlimitedEditorPlayers (ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players that have an unlimited editor. | |
static bool | SendToUnlimitedEditorPlayers (ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players that have an unlimited editor. | |
static bool | SendToUnlimitedEditorPlayersAndPlayer (int playerID, ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players that have an unlimited editor including the given player. | |
static bool | SendToUnlimitedEditorPlayersAndPlayer (int playerID, ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players that have an unlimited editor including the given player. | |
static bool | SendToGroup (int groupID, ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players in a group. | |
static bool | SendToGroup (int groupID, ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to all players in a group. | |
static bool | SendLocal (ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to the player on this machine. | |
static bool | SendLocal (ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to the player on this machine. | |
static bool | SendLocalUnlimitedEditor (ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to the player on this machine (if has Game master rights). | |
static bool | SendLocalUnlimitedEditor (ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to the player on this machine (if has Game master rights). | |
static bool | SendLocalLimitedEditor (ENotification notificationID, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to the player on this machine (if has Game master rights). | |
static bool | SendLocalLimitedEditor (ENotification notificationID, vector position, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
Send notification to the player on this machine (if has Game master rights). | |
Static Public Attributes | |
static const int | NOTIFICATION_DELETE_TIME = 30 |
static const int | NOTIFICATION_HISTORY_LENGTH = 10 |
Protected Member Functions | |
void | Rpc_SendToEveryone (ENotification notificationID, vector position, notnull array< int > paramArray) |
void | Rpc_SendToPlayer (int playerID, ENotification notificationID, vector position, notnull array< int > paramArray) |
void | Rpc_SendToFaction (int factionIndex, bool includeFriendlyFactions, ENotification notificationID, vector position, notnull array< int > paramArray) |
void | Rpc_SendToUnlimitedEditorPlayers (ENotification notificationID, vector position, notnull array< int > paramArray) |
void | Rpc_SendToUnlimitedEditorPlayersAndPlayer (int playerID, ENotification notificationID, vector position, notnull array< int > paramArray) |
void | Rpc_SendToGroup (int groupID, ENotification notificationID, vector position, notnull array< int > paramArray) |
void | ReceiveNotification (ENotification id) |
void | ReceiveSCR_NotificationData (ENotification id, SCR_NotificationData data) |
SCR_NotificationDisplayData | GetNotificationDisplayData (ENotification notificationID) |
void | AddPlayerNameToHistory (int playerID) |
void | UpdateNotificationData (bool updateNotificationData) |
void | ConnectToNotificationsSystem () |
void | DisconnectFromNotificationsSystem () |
Static Protected Member Functions | |
static bool | SendToEveryoneData (ENotification notificationID, SCR_NotificationData data) |
static bool | SendToPlayerData (int playerID, ENotification notificationID, SCR_NotificationData data) |
static bool | SendToFactionData (notnull SCR_Faction faction, bool includeFriendlyFactions, ENotification notificationID, SCR_NotificationData data) |
static bool | SendToUnlimitedEditorPlayersData (ENotification notificationID, SCR_NotificationData data, int playerID=-1) |
static bool | SendToGroupData (ENotification notificationID, SCR_NotificationData data, int groupID) |
static bool | SendLocalData (ENotification notificationID, SCR_NotificationData data) |
static void | CreateParamArray (notnull out array< int > paramArray, int param1=0, int param2=0, int param3=0, int param4=0, int param5=0, int param6=0) |
static void | GetParamsFromArray (notnull array< int > paramArray, out int param1=0, out int param2=0, out int param3=0, out int param4=0, out int param5=0, out int param6=0) |
Protected Attributes | |
ref array< ref SCR_NotificationData > | m_aHistory = {} |
ref ScriptInvoker | Event_OnNotification = new ScriptInvoker() |
SCR_NotificationData | m_LastNotificationWithLocation |
bool | m_bIsUpdatingNotificationData |
ref map< int, string > | m_mPlayerNameHistory = new map <int, string>() |
Framework for sending notifications to players.
|
protected |
|
protected |
|
staticprotected |
|
protected |
bool SCR_NotificationsComponent.GetHistoryEntry | ( | int | index, |
out SCR_NotificationData | data = null |
||
) |
Get the the specific history entry.
[in] | index | int index of history entry |
[out] | data | SCR_NotificationData of the history entry with given index |
int SCR_NotificationsComponent.GetHistoryNewToOld | ( | out notnull array< SCR_NotificationData > | outHistory | ) |
Get the list of previous notifications.
(new to old)
[out] | outHistory | Array to be filled with notifications, newest first - not emptied before filling |
int SCR_NotificationsComponent.GetHistoryOldToNew | ( | out notnull array< SCR_NotificationData > | outHistory, |
int | maxHistoryIndex = -1 |
||
) |
Get the list of previous notifications.
(old to new)
[out] | outHistory | Array to be filled with notifications, oldest first - not emptied before filling |
how | far back the history needs to be taken from. -1 means this is ignored |
|
static |
Get local instance of the notifications system.
bool SCR_NotificationsComponent.GetLastNotificationLocation | ( | out vector | lastLocation | ) |
Get last ping location.
[out] | lastPingLocation | last ping location vector |
array< ref SCR_NotificationDisplayColor > SCR_NotificationsComponent.GetNotificationDisplayColor | ( | ) |
Get Notification colors.
|
protected |
ScriptInvoker SCR_NotificationsComponent.GetOnNotification | ( | ) |
Get invoker called on player's machine when a notification is received.
|
staticprotected |
string SCR_NotificationsComponent.GetPlayerNameFromHistory | ( | int | playerID | ) |
Hotfix to Get player names when the name cannot be found anymore in the playerManager.
[in] | playerID | id of player to get name from |
array< string > SCR_NotificationsComponent.GetStickyNotifications | ( | ) |
Get Sticky notificatons Widget names from Config.
override void SCR_NotificationsComponent.OnDelete | ( | IEntity | owner | ) |
override void SCR_NotificationsComponent.OnPostInit | ( | IEntity | owner | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Send notification to the player on this machine.
[in] | notificationID | ID of the notification message |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to the player on this machine.
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
staticprotected |
|
static |
Send notification to the player on this machine (if has Game master rights).
[in] | notificationID | ID of the notification message |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to the player on this machine (if has Game master rights).
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to the player on this machine (if has Game master rights).
[in] | notificationID | ID of the notification message |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to the player on this machine (if has Game master rights).
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to all players.
[in] | notificationID | ID of the notification MessageBox |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to all players.
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
staticprotected |
|
static |
Send notification to player with given ID.
[in] | faction | Faction of players to send notification to |
[in] | includeFriendlyFactions | If true it will also send the notification to factions friendly to the given faction |
[in] | notificationID | ID of the notification message |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to player with given ID.
[in] | faction | Faction of players to send notification to |
[in] | includeFriendlyFactions | If true it will also send the notification to factions friendly to the given faction |
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
staticprotected |
|
static |
Send notification to all players in a group.
[in] | groupID | ID of group which players need to be a part of to recieve the notification |
[in] | notificationID | ID of the notification MessageBox |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to all players in a group.
[in] | groupID | ID of group which players need to be a part of to recieve the notification |
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
staticprotected |
bool SCR_NotificationsComponent.SendToOwner | ( | ENotification | id, |
SCR_NotificationData | data = null |
||
) |
Send notification to player who owns this player controller.
[in] | id | ID of the notification message |
[in] | data | Notification data |
|
static |
Send notification to player with given ID.
[in] | playerID | Id of the recipient |
[in] | notificationID | ID of the notification message |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to player with given ID.
[in] | playerID | Id of the recipient |
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
staticprotected |
|
static |
Send notification to all players that have an unlimited editor.
[in] | notificationID | ID of the notification MessageBox |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to all players that have an unlimited editor.
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to all players that have an unlimited editor including the given player.
[in] | playerID | notification is also send to this player, regardless if they have an unlimited editor or not |
[in] | notificationID | ID of the notification MessageBox |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
static |
Send notification to all players that have an unlimited editor including the given player.
[in] | playerID | notification is also send to this player, regardless if they have an unlimited editor or not |
[in] | notificationID | ID of the notification message |
[in] | position | notification position |
[in] | param1 | |
[in] | param2 | |
[in] | param3 | |
[in] | param4 | |
[in] | param5 | |
[in] | param6 |
|
staticprotected |
void SCR_NotificationsComponent.Update | ( | float | timeSlice | ) |
[in] | timeSlice |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |