Table of Contents

Class DefaultTeamSelectorBehavior

Namespace
Uncreated.Warfare.Lobby
Assembly
Uncreated.Warfare.dll
public class DefaultTeamSelectorBehavior : ITeamSelectorBehavior
Inheritance
DefaultTeamSelectorBehavior
Implements
Inherited Members

Constructors

DefaultTeamSelectorBehavior(IPlayerService)

public DefaultTeamSelectorBehavior(IPlayerService playerService)

Parameters

playerService IPlayerService

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

index int
currentTeam int

Returns

bool

UpdateTeams()

Trigger a full update for all player counts.

public void UpdateTeams()