AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Represents a player in matchmaking. When starting a matchmaking request, a player has a player ID, attributes, and may have latency data. Team information is added after a match has been successfully completed.

Inheritance Hierarchy

System.Object
  Amazon.GameLift.Model.Player

Namespace: Amazon.GameLift.Model
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z

Syntax

C#
public class Player

The Player type exposes the following members

Constructors

NameDescription
Public Method Player()

Properties

NameTypeDescription
Public Property LatencyInMs System.Collections.Generic.Dictionary<System.String, System.Int32>

Gets and sets the property LatencyInMs.

Set of values, expressed in milliseconds, indicating the amount of latency that a player experiences when connected to AWS regions. If this property is present, FlexMatch considers placing the match only in regions for which latency is reported.

If a matchmaker has a rule that evaluates player latency, players must report latency in order to be matched. If no latency is reported in this scenario, FlexMatch assumes that no regions are available to the player and the ticket is not matchable.

Public Property PlayerAttributes System.Collections.Generic.Dictionary<System.String, Amazon.GameLift.Model.AttributeValue>

Gets and sets the property PlayerAttributes.

Collection of name:value pairs containing player information for use in matchmaking. Player attribute names need to match playerAttributes names in the rule set being used. Example:

"PlayerAttributes": {"skill": {"N": "23"}, "gameMode":
            {"S": "deathmatch"}}
.

Public Property PlayerId System.String

Gets and sets the property PlayerId.

Unique identifier for a player

Public Property Team System.String

Gets and sets the property Team.

Name of the team that the player is assigned to in a match. Team names are defined in a matchmaking rule set.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms