sc2_datasets.replay_parser.game_events.events.selection_delta¶
Classes¶
SelectionDelta contains details about a player's selection during the game. |
Module Contents¶
- class SelectionDelta¶
Bases:
sc2_datasets.replay_parser.game_events.game_event.GameEventSelectionDelta contains details about a player’s selection during the game.
- Parameters:
controlGroupId (int) – Specifies the event ID of the control group that was selected.
delta (Delta) – Specifies the game loop number (game-engine tick) at which the event occurred.
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.
userid (int) – Specifies the ID number of the player who executed the selection option in the game.
- controlGroupId: int¶
- id: int¶
- loop: int¶
- userid: int¶
- static from_dict(d: dict) SelectionDelta¶
Initializes a SelectionDelta class from a dictionary, aiding the original JSON parsing.
- Parameters:
d (dict) – A dictionary obtained from pre-processing an .SC2Replay file in JSON format.
- Returns:
An initialized instance of the SelectionDelta class.
- Return type: