Player class
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.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
latencyInMs
→ Map<
String, int> ? -
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.
final
-
playerAttributes
→ Map<
String, AttributeValue> ? -
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"}}
.final - playerId → String?
-
A unique identifier for a player
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- team → String?
-
Name of the team that the player is assigned to in a match. Team names are
defined in a matchmaking rule set.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited