sc2_datasets.replay_parser.game_events.events.control_group_update¶
Classes¶
ControlGroupUpdate is containing some "details" information about |
Module Contents¶
- class ControlGroupUpdate¶
Bases:
sc2_datasets.replay_parser.game_events.game_event.GameEventControlGroupUpdate is containing some “details” information about updates and changes player’s control groups in the game.
- Parameters:
controlGroupIndex (int) – Highly likely this parameter specifies an id parameter which control group has selected by the player in the game.
controlGroupUpdate (int) – Highly likely this parameter specifies an id parameter which control group has changed by the player in the game.
id (int) – Specifies the ID of an event which corresponds to its name.
loop (int) – Specifies the game loop number (game-engine tick) at which the event occurred.
userid (int) – Specifies id number of player who has updated the group control the game.
- controlGroupIndex: int¶
- controlGroupUpdate: int¶
- id: int¶
- loop: int¶
- userid: int¶
- static from_dict(d: dict) ControlGroupUpdate¶
Static method returning initialized ControlGroupUpdate 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:
Returns an initialized ControlGroupUpdate class.
- Return type: