Structure representing a live game, or a game which was in progress at the time it was fetched.

Hierarchy

  • STLiveGame

Constructors

  • new STLiveGame(obj: { gameMode: string; gameType: string; mapName: string; players: any; teams: { name: string; score: number }[]; timeLeft: number; timeLeftString: string }): STLiveGame
  • Parameters

    • obj: { gameMode: string; gameType: string; mapName: string; players: any; teams: { name: string; score: number }[]; timeLeft: number; timeLeftString: string }

      The object to take properties from, as supplied by the API

      • gameMode: string
      • gameType: string
      • mapName: string
      • players: any
      • teams: { name: string; score: number }[]
      • timeLeft: number
      • timeLeftString: string

    Returns STLiveGame

Properties

map: string

The name of the map.

mode: string

The game mode.

players: STGamePlayer[]

An array of the players, including spectators.

teams: STTeam[]

An array of the teams playing.

timeLeft: number

How many total seconds are left in the game.

timeLeftString: string

How much time is left in the game, expressed as a String. Ex: 4:20.

type: string

The type of game. See type.

Generated using TypeDoc