uncategorized replayData - wxyz-abcd/node-haxball GitHub Wiki

ReplayReader

The structure that holds all of the data inside a replay file.

Properties

  • roomData: The initial RoomState of the replay, including all the information about the current stadium, game state, players, etc.
  • events: Array that contains all events in this replay ordered by their respective frameNo.
  • goalMarkers: Array that contains all goal markers ordered by their respective frameNo in this format: { teamId: int, frameNo: int }.
  • totalFrames: Total number of frames in this replay.
  • version: Version number of the replay. Must currently be equal to 3.