Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
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.
See: newPlayer
smart constructor.
Player' | |
|
Instances
Create a value of Player
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:playerAttributes:Player'
, player_playerAttributes
- A collection of key:value pairs containing player information for use in
matchmaking. Player attribute keys must match the playerAttributes
used in a matchmaking rule set. Example:
"PlayerAttributes": {"skill": {"N": "23"}, "gameMode": {"S": "deathmatch"}}
.
$sel:team:Player'
, player_team
- Name of the team that the player is assigned to in a match. Team names
are defined in a matchmaking rule set.
$sel:playerId:Player'
, player_playerId
- A unique identifier for a player
$sel:latencyInMs:Player'
, player_latencyInMs
- A set of values, expressed in milliseconds, that indicates 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.
player_playerAttributes :: Lens' Player (Maybe (HashMap Text AttributeValue)) Source #
A collection of key:value pairs containing player information for use in
matchmaking. Player attribute keys must match the playerAttributes
used in a matchmaking rule set. Example:
"PlayerAttributes": {"skill": {"N": "23"}, "gameMode": {"S": "deathmatch"}}
.
player_team :: Lens' Player (Maybe Text) Source #
Name of the team that the player is assigned to in a match. Team names are defined in a matchmaking rule set.
player_latencyInMs :: Lens' Player (Maybe (HashMap Text Natural)) Source #
A set of values, expressed in milliseconds, that indicates 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.