Skip to content

Commit

Permalink
feat: add region_id attr to Entity
Browse files Browse the repository at this point in the history
  • Loading branch information
NumberPigeon committed Aug 30, 2023
1 parent ccef488 commit 97b101e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sc2reader/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def __init__(self, sid, slot_data):
toon_handle = self.toon_handle or "0-S2-0-0"
parts = toon_handle.split("-")

#: The Battle.net region id the entity is registered to
self.region_id = int(parts[0])

#: The Battle.net region the entity is registered to
self.region = GATEWAY_LOOKUP[int(parts[0])]

Expand Down

0 comments on commit 97b101e

Please sign in to comment.