Skip to content

Commit 97b101e

Browse files
committed
feat: add region_id attr to Entity
1 parent ccef488 commit 97b101e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sc2reader/objects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ def __init__(self, sid, slot_data):
135135
toon_handle = self.toon_handle or "0-S2-0-0"
136136
parts = toon_handle.split("-")
137137

138+
#: The Battle.net region id the entity is registered to
139+
self.region_id = int(parts[0])
140+
138141
#: The Battle.net region the entity is registered to
139142
self.region = GATEWAY_LOOKUP[int(parts[0])]
140143

0 commit comments

Comments
 (0)