PlayerManager
Summary
Methods
Methods
GetPlayers
GetPlayers(): Player[]
Returns
GetPlayersByTeam
GetPlayersByTeam(team: TeamId): Player[]
Parameters
Name |
Type |
Description |
team |
TeamId |
|
Returns
GetPlayersBySquad
GetPlayersBySquad(team: TeamId, squad: SquadId): Player[]
Parameters
Returns
GetPlayerById
GetPlayerById(id: int): Player | nil
Parameters
Name |
Type |
Description |
id |
int |
|
Returns
GetPlayerByOnlineId
GetPlayerByOnlineId(onlineId: int): Player | nil
Parameters
Name |
Type |
Description |
onlineId |
int |
|
Returns
GetPlayerByName
GetPlayerByName(name: string): Player | nil
Parameters
Name |
Type |
Description |
name |
string |
|
Returns
GetPlayersByName
GetPlayersByName(name: string): Player[]
Parameters
Name |
Type |
Description |
name |
string |
|
Returns
GetPlayerCount
GetPlayerCount(): int
Returns
GetLocalPlayer
GetLocalPlayer(): Player | nil
Returns
GetSpectatorCount
GetSpectatorCount(): int
Returns
GetSquadLeader
GetSquadLeader(team: TeamId, squad: SquadId): Player | nil
Parameters
Returns