Table of Contents

Interface ITeamSelectorBehavior

Namespace
Uncreated.Warfare.Lobby
Assembly
Uncreated.Warfare.dll
public interface ITeamSelectorBehavior

Properties

Teams

Array of all available teams to be updated as team counts change.

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.

bool CanJoinTeam(int index, int currentTeam = -1)

Parameters

index int
currentTeam int

Returns

bool

UpdateTeams()

Trigger a full update for all player counts.

void UpdateTeams()