PlayerManager

Summary

Methods

Method Returns
GetPlayers() Player[]
GetPlayersByTeam(team: TeamId) Player[]
GetPlayersBySquad(team: TeamId, squad: SquadId) Player[]
GetPlayerById(id: int) Player | nil
GetPlayerByOnlineId(onlineId: int) Player | nil
GetPlayerByName(name: string) Player | nil
GetPlayersByName(name: string) Player[]
GetPlayerCount() int
GetLocalPlayer() Player | nil
GetSpectatorCount() int

Methods

GetPlayers

GetPlayers(): Player[]

Returns

Type Description
Player[]

GetPlayersByTeam

GetPlayersByTeam(team: TeamId): Player[]

Parameters

Name Type Description
team TeamId

Returns

Type Description
Player[]

GetPlayersBySquad

GetPlayersBySquad(team: TeamId, squad: SquadId): Player[]

Parameters

Name Type Description
team TeamId
squad SquadId

Returns

Type Description
Player[]

GetPlayerById

GetPlayerById(id: int): Player | nil

Parameters

Name Type Description
id int

Returns

Type Description
Player | nil

GetPlayerByOnlineId

GetPlayerByOnlineId(onlineId: int): Player | nil

Parameters

Name Type Description
onlineId int

Returns

Type Description
Player | nil

GetPlayerByName

GetPlayerByName(name: string): Player | nil

Parameters

Name Type Description
name string

Returns

Type Description
Player | nil

GetPlayersByName

GetPlayersByName(name: string): Player[]

Parameters

Name Type Description
name string

Returns

Type Description
Player[]

GetPlayerCount

GetPlayerCount(): int

Returns

Type Description
int

GetLocalPlayer

GetLocalPlayer(): Player | nil

Returns

Type Description
Player | nil

GetSpectatorCount

GetSpectatorCount(): int

Returns

Type Description
int