GetFriends() | (none) | List<Friend> | Returns the friends from the local state. |
SearchPlayers(query) | string | List<Player> | Sends a request to the server and blocks until the response comes. |
GetIncomingFriendRequests() | (none) | List<FriendRequest> | Returns the incoming friend requests. |
GetOutgoingFriendRequests() | (none) | List<FriendRequest> | Returns the outgoing friend requests. |
SendFriendRequest(playerId) | string | void | Uses the PlayerId field, not the Id field. |
AcceptFriendRequest(requestId) | string | void | Accepts an incoming request. |
RejectFriendRequest(requestId) | string | void | Rejects an incoming request. |
CancelFriendRequest(requestId) | string | void | Cancels an outgoing request. |
RemoveFriend(friendshipId) | string | void | Uses the FriendshipId field. |
GetState() | (none) | SocialState | Returns the current state. |
Refresh() | (none) | void | Reads the latest data from the server. |
AddListener(listener) | Action | void | Calls the listener on each change of the state. |
RemoveListener(listener) | Action | void | Deletes the listener. |