Class Player
An object representing a single player.
Inherited Members
Namespace: Unity.Services.Matchmaker.Models
Syntax
[Preserve]
public class Player
Constructors
Player(String, Object, List<QosResult>)
An object representing a single player.
Declaration
[Preserve]
public Player(string id, object customData = null, List<QosResult> qosResults = null)
Parameters
Type | Name | Description |
---|---|---|
String | id | The unique ID of the player. Usually, the ID received as a result of authenticating a player. |
Object | customData | A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition. |
List<QosResult> | qosResults | A list of QosResult. |
Properties
CustomData
A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition.
Declaration
[Preserve]
public IDeserializable CustomData { get; }
Property Value
Type | Description |
---|---|
IDeserializable |
Id
The unique ID of the player. Usually, the ID received as a result of authenticating a player.
Declaration
[Preserve]
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
QosResults
A list of QosResult.
Declaration
[Preserve]
public List<QosResult> QosResults { get; }
Property Value
Type | Description |
---|---|
List<QosResult> |