python: string repr for entries

This commit is contained in:
Brandon Liu
2022-10-13 15:15:13 +08:00
parent eae1d3a11d
commit 5e400b0dbd

View File

@@ -12,6 +12,9 @@ class Entry:
self.length = length self.length = length
self.run_length = run_length self.run_length = run_length
def __str__(self):
return f"id={self.tile_id} offset={self.offset} length={self.length} runlength={self.run_length}"
def rotate(n, xy, rx, ry): def rotate(n, xy, rx, ry):
if ry == 0: if ry == 0: