sc2_datasets.replay_parser.game_events.events.command_manager_state

Classes

CommandManagerState

CommandManagerState type contains information about some states during the game, like time, player, etc.

Module Contents

class CommandManagerState

Bases: sc2_datasets.replay_parser.game_events.game_event.GameEvent

CommandManagerState type contains information about some states during the game, like time, player, etc.

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

  • loop (int) – Specifies the game loop number (game-engine tick) at which the event occurred.

  • sequence (int) – Highly likely specifies an ID parameter indicating the sequence made by the player.

  • state (int) – Highly likely specifies an ID parameter indicating the state made by the player.

  • userid (int) – Specifies the ID number of the player who managed the state. For example, in a 1v1 game: [0,1].

id: int
loop: int
sequence: int
state: int
userid: int
static from_dict(d: dict) CommandManagerState

Static method returning initialized CommandManagerState class from a dictionary. This helps with the original JSON parsing.

Parameters:

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

Returns:

An initialized CommandManagerState class.

Return type:

CommandManagerState