Version: en
Rules
warning
This documentation is now deprecated. If you are using Matchmaker Self Serve though UDash, please use the documentation here.
#
RulesA rule is a generic way of describing a logical goal-seeking behavior. Rules apply to different levels of the matchmaking logic: Match-level and Team-level. Match level rules ensure the validity of the match they are defined in, while Team level rules ensure the validity of the team they are defined in.
All rules must pass in order for a match/team to be considered valid. However, you can define an inverse rule (one that should NOT pass) by setting the Not
field to true.
#
Base Rule ContractField | Type | Description |
---|---|---|
Type | string | Rule to apply. See Supported Rules |
Source | string | Data source path. See Supported Data Sources |
Reference | * (Optional) | Reference to compare to. Not used by all rules. |
Not | bool (Optional) | Inverse the rule if true . false if not provided. |
EnableRule | bool (Optional) | Disable the rule if false . true if not provided. This is usually used to disable or enable a rule later by a relaxation. |
Relaxations | List<Relaxation> | List of relaxations to apply. See Rule Relaxations |
#
Supported RulesRule | Input | Description |
---|---|---|
Difference | Source: List<number> Reference: number | Ensures that the difference between all values in a list is within a certain distance. |
Equality | Source: List<*> Reference: * (Optional) | Ensures that all values in the list are equal. |
LessThan | Source: number Reference: number | Ensures that the source value is less than the reference value. |
LessThanEqual | Source: number Reference: number | Ensures that the source value is less than or equal to the reference value. |
GreaterThan | Source: number Reference: number | Ensures that the source value is greater than the reference value. |
GreaterThanEqual | Source: number Reference: number | Ensures that the source value is greater than or equal to the reference value. |
InList | Source: * Reference: List<*> | Ensures that the source value is in the reference list. |
Intersection | Source: List<List<*>> Overlap: number | Ensures that the list of given lists has a minimum intersection of the overlap number provided. |