sc2_datasets.replay_parser.game_events.events.game_user_leave

Classes

GameUserLeave

Represents information about a player leaving the game.

Module Contents

class GameUserLeave

Bases: sc2_datasets.replay_parser.game_events.game_event.GameEvent

Represents information about a player leaving the game.

Parameters:
  • id (int) – The ID of the event corresponding to its name.

  • leaveReason (int) – A number determining the reason for leaving (details unspecified).

  • loop (int) – The game loop number (game-engine tick) when the event occurred.

  • userid (int) – The ID number of the player who left the game.

id: int
leaveReason: int
loop: int
userid: int
static from_dict(d: dict) GameUserLeave

Static method returning initialized GameUserLeave class from a dictionary.

Parameters:

d (dict) – Specifies a dictionary as available in the JSON file that is a result of pre-processing some .SC2Replay file.

Returns:

Returns an initialized GameUserLeave class.

Return type:

GameUserLeave