GameCenterMatchmakingRuleCreateRequest.Data.Attributes
The attributes for a rule that you create.
Declaration
object GameCenterMatchmakingRuleCreateRequest.Data.AttributesProperties
| Name | Type | Description |
|---|---|---|
description Required | string | A human-readable description of the rule. |
expression Required | string | Code that returns a Boolean or numeric value that the matchmaking rules algorithm executes to compare or filter match requests. |
referenceName Required | string | A name for the rule that’s unique within the scope of its rule set. |
type Required | string | The type or category of the rule that determines the return value and properties available in the expression. |
weight | number | A numeric value for the rule when |
Discussion
The possible values for the type field are:
| Rules that enforce constraints on two match requests and return a Boolean value. [Image] For example, a rule that requires devices to run the same version of your game, or finds players that share a common language or game settings. [Image] If you set the |
|---|---|
| Rules that evaluate the similarity of two match requests and return a numeric value between |
| Rules that evaluate properties across all compatible requests. [Image] For example, rules that prefer match candidates with more players but allows less players after a period of time, compare the difference in skill levels of players to a desired skill level that’s a function of time, and find players that have compatible game configurations that loosen over time. [Image] If you set the type field to |
| Rules that evaluate the assignment of players to teams and return a Boolean value. [Image] For example, rules that make the number of players on each team the same, balance the skill levels on each team for a fair match, and keep invited friends on the same team. [Image] If you set the |