Skip to content

Commit 88cf357

Browse files
committed
Add unit.get_race method for forward compatibility.
1 parent b32ae90 commit 88cf357

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sc2reader/data/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ def __init__(self, unit_id, flags):
272272
self.hallucinated = (flags & 2 == 2)
273273
self._cmp_val = (self.id << 16) | self.type
274274

275+
def get_race(self):
276+
return self.race
277+
275278
def __str__(self):
276279
return "{0} [{1:X}]".format(self.name, self.id)
277280

0 commit comments

Comments
 (0)