v1.0.0
Latest
2022.3+
Class Player
An object representing a single player.
Inheritance
System.Object
Player
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Matchmaker.Models
Syntax
public class Player
Constructors
Player(String, Object, List<QosResult>)
An object representing a single player.
Declaration
public Player(string id, object customData = null, List<QosResult> qosResults = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The unique ID of the player. Usually, the ID received as a result of authenticating a player. |
System.Object | customData | A custom data object. Contains a dictionary of custom data to be used by the rules defined in a Match Definition. |
System.Collections.Generic.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
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
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
QosResults
A list of QosResult.
Declaration
public List<QosResult> QosResults { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<QosResult> |