Version: en
Contracts - Rule Based Ticket
warning
This documentation is now deprecated. If you are using Matchmaker Self Serve though UDash, please use the documentation here.
#
Main ContractField | Description | Type |
---|---|---|
Attributes | Indexable fields to use for pool segmentation. Example Attributes include map, mode, platform. Note that attributes are currently limited to double values. (Optional) | Dictionary<string, double> |
Properties | This field is a map of Base64-encoded strings with the format <string, byte[]> . The byte[] must be a Base64-encoded string. These fields are deserialized and used by the matchmaking rules logic. QosResults , Players , and Data should each contain a Base64-encoded string in the following format:QosResults: [{"RegionId": "Region1", "PacketLoss": 0.1, "Latency": 23}, {"RegionId": "Region2", "PacketLoss": 0.3, "Latency": 115} } ] Players: [{"id": "123", "Data": "{}"}, {"id": "456", "Data": "{}"}] Data: {} | Dictionary<string, byte[]> |
#
Properties - QosResultsnote
The key must be title case. The value must be a Base64-encoded string.
Field | Description | Type |
---|---|---|
RegionId | Contains the id of the QoS region the results belong to. | string |
PacketLoss | The Packet Loss ratio to this QoS region. | double |
Latency | The Latency to this QoS region. | double |
#
Properties - Playersnote
The key must be title case. The value must be a Base64-encoded string.
Field | Description | Type |
---|---|---|
Id | The unique ID of the player. | string |
Data | A custom data object (Optional). | object |
#
Properties - Datanote
The key must be title case. The value must be a Base64-encoded string.
Field | Description | Type |
---|---|---|
{KEY} | The data name. Will be available at Source="Ticket.Data.{KEY} . See Data Sources for more information on source syntax. | string |
Value | The value. See Rules for more information on rules and supported types for each one of them. | * |
#
Create Ticket ResponseField | Description | Type |
---|---|---|
id | The identifier of the new ticket. Note: This identifier is not guaranteed to be a GUID. | string |
#
Get Ticket Response (Polling)Field | Description | Type |
---|---|---|
attributes | Submitted attributes. | See Main Contract. |
properties | Submitted properties. | See Main Contract. |
created | Unix UTC milliseconds for when the ticket was created. This field is automatically indexed and made available for a query as the attribute "created" . | long |
assignment | An object containing the outcome of the matchmaking request. | object |
assignment.connection | Connection information for connecting to the dedicated game server or session. | string |
assignment.error | A customizable or well-known value for handling matchmaking failures. Several known errors:
| string |
assignment.properties | Currently not used. | object |
assignment.matchproperties | This data is provided to all players on a ticket and the game server. In the preceding example, the match properties tell the game client which players are on which team. If assignment.error is non null and has a value of StandardTicketError , this field will include error details. | object |
#
MatchProperties ContractThe match properties list all teams and their players.