Skip to content

Commit

Permalink
style cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrene committed May 30, 2024
1 parent 38a52f1 commit 702f781
Show file tree
Hide file tree
Showing 4 changed files with 471 additions and 342 deletions.
6 changes: 3 additions & 3 deletions sc2reader/engine/plugins/creeptracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def __init__(self, replay):
self.unit_name_to_radius = {"CreepTumor": 10, "Hatchery": 8, "NydusCanal": 5}
self.radius_to_coordinates = dict()
for x in self.unit_name_to_radius:
self.radius_to_coordinates[
self.unit_name_to_radius[x]
] = self.radius_to_map_positions(self.unit_name_to_radius[x])
self.radius_to_coordinates[self.unit_name_to_radius[x]] = (
self.radius_to_map_positions(self.unit_name_to_radius[x])
)
# Get map information
replayMap = replay.map
# extract image from replay package
Expand Down
4 changes: 3 additions & 1 deletion sc2reader/events/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,13 @@ def __init__(self, frame, pid, data):
#: Information on the users hijacking the game
self.user_infos = data["user_infos"]


@loggable
class DialogControlEvent(GameEvent):
"""
Generated when a dialog is interacted with.
"""

def __init__(self, frame, pid, data):
super().__init__(frame, pid)

Expand All @@ -781,4 +783,4 @@ def __init__(self, frame, pid, data):
self.event_type = data["event_type"]

#: Data specific to event type such as changes or clicks
self.event_data = data["event_data"]
self.event_data = data["event_data"]
Loading

0 comments on commit 702f781

Please sign in to comment.