sc2_datasets.replay_parser.tracker_events.events.unit_died

Classes

UnitDied

UnitDied contains some "details" information about unit

Module Contents

class UnitDied

Bases: sc2_datasets.replay_parser.tracker_events.tracker_event.TrackerEvent

UnitDied contains some “details” information about unit at the moment of it has died in the game.

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

  • killerPlayerId (int) – Specifies an id number of played who has controlled and destroyed the unit in the game.

  • killerUnitTagIndex (int) – Specifies a pointer for a specific unit which destroyed the unit in the game.

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

  • 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 destroyed in the game.

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

  • x (int) – Specifies x coordinate of map in pixels where the object was destroyed.

  • y (int) – Specifies y coordinate of map in pixels where the object was destroyed.

id: int
killerPlayerId: int
killerUnitTagIndex: int
killerUnitTagRecycle: int
loop: int
unitTagIndex: int
unitTagRecycle: int
x: int
y: int
static from_dict(d: dict) UnitDied

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

Return type:

UnitDied