A player of a game.

Hierarchy

  • STGamePlayer

Constructors

Properties

Constructors

  • Parameters

    • obj: any

      The API-given object that this will take from, which should include attributes of STStats and name (string), state (number), and team (attributes of STStats) attributes.

    Returns STGamePlayer

Properties

name: string

The name of the player.

state: number

The state of the player.

State Meaning
0 Alive
1 Dead
2 Spawning
3 Lagged
4 Editing
5 Spectator
stats: STStats

The player's stats.

team: STTeam

The team the player is on.

Generated using TypeDoc