|
Arma Reforger Script API
|
Component responsible for handling social interactions b/w 2 players. More...
Public Member Functions | |
| proto external bool | IsRestricted (int otherPlayerID, EUserInteraction interaction) |
| Is the given interaction b/w this and otherPlayer allowed? | |
| proto external bool | IsBlocked (int otherPlayerID) |
| Determines if otherPlayer is blocked by this player. | |
| proto external bool | CanUnblock (int otherPlayerID) |
| Determines if the player can be unblocked from within game - it is on game block list. | |
| proto external bool | IsMuted (int otherPlayerID) |
| Determines if otherPlayer is muted by this player for the duration of the game session. | |
| proto external void | SetMuted (int otherPlayerID, bool mute) |
| Mutes/unmutes otherPlayer for the duration of the game session. | |
| proto external void | ReportPlayer (int reportedPlayerID, SCR_EReportReason reason) |
| Reports inappropriate player behaviour into BackendApi. | |
Public Member Functions inherited from GameComponent | |
| bool | OnTicksOnRemoteProxy () |
Static Public Member Functions | |
| static proto bool | IsPrivilegedTo (EUserInteraction interaction) |
| Is local user privileged to participate in given interaction? | |
| static proto bool | RequestSocialPrivilege (EUserInteraction interaction, PrivilegeCallback cb) |
| Requests the local user privilege associated with given interaction. | |
| static proto bool | IsMultiplayerAllowed () |
| Is local user allowed to participate in multiplayer? | |
| static proto bool | RequestMultiplayerPrivilege (PrivilegeCallback cb) |
| Requests the local user privilege to participate in multiplayer games. | |
Public Attributes | |
| ref ScriptInvoker< int > | m_OnBlockedPlayerJoinedInvoker = new ScriptInvoker<int>() |
| ref ScriptInvoker< int, bool > | m_OnReportPlayerFinishInvoker = new ScriptInvoker<int, bool>() |
Protected Member Functions | |
| void | OnBlockedPlayerJoined (int joinedPlayerID) |
| Event invoked when player present on a platform or game blocklist joins the server. | |
| void | OnReportPlayerFinish (int reportedPlayerID, bool success) |
| Event invoked as a result of ReportPlayer. | |
Component responsible for handling social interactions b/w 2 players.
Gathers restrictions from different sources like platform user permissions/privileges. This component is meant to be on the Player Controller.
| proto external bool SocialComponent.CanUnblock | ( | int | otherPlayerID | ) |
Determines if the player can be unblocked from within game - it is on game block list.
| proto external bool SocialComponent.IsBlocked | ( | int | otherPlayerID | ) |
Determines if otherPlayer is blocked by this player.
All player interactions are restricted if one player is blocked. Returns false in case of invalid argument.
|
static |
Is local user allowed to participate in multiplayer?
| proto external bool SocialComponent.IsMuted | ( | int | otherPlayerID | ) |
Determines if otherPlayer is muted by this player for the duration of the game session.
Only VoiceChat UserInteraction is affected. Returns false in case of invalid argument.
|
static |
Is local user privileged to participate in given interaction?
| proto external bool SocialComponent.IsRestricted | ( | int | otherPlayerID, |
| EUserInteraction | interaction ) |
Is the given interaction b/w this and otherPlayer allowed?
Returns false in case of invalid arguments.
|
protected |
Event invoked when player present on a platform or game blocklist joins the server.
|
protected |
Event invoked as a result of ReportPlayer.
| proto external void SocialComponent.ReportPlayer | ( | int | reportedPlayerID, |
| SCR_EReportReason | reason ) |
Reports inappropriate player behaviour into BackendApi.
|
static |
Requests the local user privilege to participate in multiplayer games.
| callback | Callback object used to obtain result. |
|
static |
Requests the local user privilege associated with given interaction.
| interaction | Requested interaction. |
| callback | Callback object used to obtain result. |
| proto external void SocialComponent.SetMuted | ( | int | otherPlayerID, |
| bool | mute ) |
Mutes/unmutes otherPlayer for the duration of the game session.
Only VoiceChat interaction is affected.
| ref ScriptInvoker<int> SocialComponent.m_OnBlockedPlayerJoinedInvoker = new ScriptInvoker<int>() |
| ref ScriptInvoker<int, bool> SocialComponent.m_OnReportPlayerFinishInvoker = new ScriptInvoker<int, bool>() |