Class DefaultTeamSelectorBehavior
public class DefaultTeamSelectorBehavior : ITeamSelectorBehavior
- Inheritance
-
DefaultTeamSelectorBehavior
- Implements
- Inherited Members
Constructors
DefaultTeamSelectorBehavior(IPlayerService)
public DefaultTeamSelectorBehavior(IPlayerService playerService)
Parameters
playerServiceIPlayerService
Properties
Teams
Array of all available teams to be updated as team counts change.
public TeamInfo[]? Teams { get; set; }
Property Value
- TeamInfo[]
Methods
CanJoinTeam(int, int)
If a player can join a team, optionally specifying the team they're currently on.
public bool CanJoinTeam(int index, int currentTeam = -1)
Parameters
Returns
UpdateTeams()
Trigger a full update for all player counts.
public void UpdateTeams()