sc2_datasets.replay_parser.tracker_events.events.player_setup¶
Classes¶
Data type that denotes a player setup event which is available in tracker events. |
Module Contents¶
- class PlayerSetup¶
Bases:
sc2_datasets.replay_parser.tracker_events.tracker_event.TrackerEventData type that denotes a player setup event which is available in tracker events. It contains basic information mapping userId to playerId to slotId.
- Parameters:
id (int) – Highly likely this field specifies an id of the PlayerSetup object.
loop (int) – Specifies the time (in gameloop units) at which the event happened.
playerId (int) – Specifies an id of the player in the game, in 1v1 game [1,2].
slotId (int) – Specifies an id of the starting location.
type (int) – There is no valuable information about this parameter.
userId (int) – Specifies the setup user id for the player.
- id: int¶
- loop: int¶
- playerId: int¶
- slotId: int¶
- type: int¶
- userId: int¶
- static from_dict(d: dict) PlayerSetup¶
Static method returning initialized PlayerSetup 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 PlayerSetup class.
- Return type: