Class MatchRequest
Represents a request (a set of config parameters) for a new real-time or turn-based multiplayer match.
Inheritance
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public class MatchRequest
Fields
MaxVariant
The maximum variant allowed.
Declaration
public const uint MaxVariant = 511U
Field Value
Type | Description |
---|---|
System.UInt32 |
MinVariant
The minimum variant allowed.
Declaration
public const uint MinVariant = 0U
Field Value
Type | Description |
---|---|
System.UInt32 |
Properties
ExclusiveBitmask
If your game has multiple player roles (such as farmer, archer, and wizard) and you want to restrict auto-matched games to one player of each role, add an exclusive bitmask to your match request. When auto-matching with this option, players will only be considered for a match when the logical AND of their exclusive bitmasks is equal to 0. In other words, this value represents the exclusive role the player making this request wants to play in the created match. If this value is 0 (default) it will be ignored. If you're creating a match with the standard matchmaker UI, this value will also be ignored.
Declaration
public uint ExclusiveBitmask { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
MaxPlayers
The maximum number of players that may join the match, including
the player who is making the match request.
Must be equal or greater than
Declaration
public uint MaxPlayers { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
MinPlayers
The minimum number of players that may join the match, including the player who is making the match request. Must be at least 2 (default).
Declaration
public uint MinPlayers { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Variant
The match variant. The meaning of this parameter is defined by the game. It usually indicates a particular game type or mode (for example "capture the flag", "first to 10 points", etc). It allows the player to match only with players whose match request shares the same variant number. This value must be between 0 and 511 (inclusive). Default value is 0.
Declaration
public uint Variant { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
GetMaxPlayersAllowed(MatchType)
Gets the maximum number of players allowed for the specified match type.
Declaration
public static uint GetMaxPlayersAllowed(MatchType matchType)
Parameters
Type | Name | Description |
---|---|---|
MatchType | matchType | Match type. |
Returns
Type | Description |
---|---|
System.UInt32 | The max players allowed. |