sc2_datasets.replay_parser.tracker_events.events.unit_positions¶
Classes¶
UnitPositions holds some detail information about how |
Module Contents¶
- class UnitPositions¶
Bases:
sc2_datasets.replay_parser.tracker_events.tracker_event.TrackerEventUnitPositions holds some detail information about how the unit position was changing during the game.
- Parameters:
firstUnitIndex (int) – Specifies a pointer for a specific unit which was doing some changes.
id (int) – Specifies the ID of an event which corresponds to its name.
items (list[int]) – Specifies a list of int values, there is no specific information what the numbers mean.
loop (int) – Specifies the game loop number (game-engine tick) when at which the event occurred.
- firstUnitIndex: int¶
- id: int¶
- items: list[int]¶
- loop: int¶
- static from_dict(d: dict) UnitPositions¶
Static method returning initialized UnitPositions 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 UnitPositions class.
- Return type: