Class Team
Team model
Inherited Members
Namespace: Unity.Services.Matchmaker.Models
Syntax
[Preserve]
public class Team
Constructors
Team(String, String, List<String>)
Creates an instance of Team.
Declaration
[Preserve]
public Team(string teamName = null, string teamId = null, List<string> playerIds = null)
Parameters
Type | Name | Description |
---|---|---|
String | teamName | The name of the team. The team name should be the same as the team name defined in the rules of matchmaking. |
String | teamId | The ID of the team. |
List<String> | playerIds | An array of player IDs that represent the players in a team. This ID must exist in the list of players of the Match Properties. |
Properties
PlayerIds
An array of player IDs that represent the players in a team. This ID must exist in the list of players of the Match Properties.
Declaration
[Preserve]
public List<string> PlayerIds { get; }
Property Value
Type | Description |
---|---|
List<String> |
TeamId
The ID of the team.
Declaration
[Preserve]
public string TeamId { get; }
Property Value
Type | Description |
---|---|
String |
TeamName
The name of the team. The team name should be the same as the team name defined in the rules of matchmaking.
Declaration
[Preserve]
public string TeamName { get; }
Property Value
Type | Description |
---|---|
String |