GameEndEvent class
A representation of the game end event.
Signature:
export declare class GameEndEvent extends TimelineEvent
Extends: TimelineEvent
References: TimelineEvent
Constructor
new GameEndEvent (data: GameEndEventData)
Constructs a new instance of the GameEndEvent
class.
Parameters:
Parameter | Type | Description |
---|---|---|
data | GameEndEventData | The raw data of the event. |
Properties
gameId
The ID of the game.
Type: Number
realTime
The real time at which the game ended.
Type: Date
realTimestamp
The real world timestamp at which the game ended.
Type: Number
type
The type of the event.
Type: 'GAME_END'
winningTeam
The winning team.
Type: "red" | "blue"
winningTeamId
The ID of the winning team.
Type: 100 | 200
Table of Contents