sc2_datasets.replay_parser.tracker_events.events.upgrade

Classes

Upgrade

Upgrade type containing some "details" information

Module Contents

class Upgrade

Bases: sc2_datasets.replay_parser.tracker_events.tracker_event.TrackerEvent

Upgrade type containing some “details” information on which player is doing an upgrade, game loop, upgrade in game name etc.

Parameters:
  • count (int, optional) – Specifies a number, highly likely this parameter serves for adding value of upgrades to summary. Default value of the parameter is 1.

  • id (int) – Specifies an event unique number.

  • loop (int) – Specifies a game loop when the upgrade was started in the game.

  • playerId (int) – Specifies an id of the player who was doing the upgrade in the game.

  • upgradeTypeName (str) – Specifies a name that upgrade has in the game.

count: int
id: int
loop: int
playerId: int
upgradeTypeName: str
static from_dict(d: dict) Upgrade

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

Return type:

Upgrade