sc2_datasets.replay_parser.tracker_events.events.unit_done

Classes

UnitDone

UnitDone is containing some "details" information about unit at the moment

Module Contents

class UnitDone

Bases: sc2_datasets.replay_parser.tracker_events.tracker_event.TrackerEvent

UnitDone is containing some “details” information about unit at the moment of it has built in the game.

Parameters:
  • 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.

  • unitTagIndex (int) – Specifies a pointer for a specific unit which was finishing its build.

  • unitTagRecycle (int) – There is no specific information about this parameter.

id: int
loop: int
unitTagIndex: int
unitTagRecycle: int
static from_dict(d: dict) UnitDone

Static method returning initialized UnitDone 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 UnitDone class.

Return type:

UnitDone