mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 12:42:41 -06:00
18 lines
356 B
Python
18 lines
356 B
Python
|
|
||
|
|
||
|
class DecorBase:
|
||
|
|
||
|
def __init__(self, decorId, x, y, h):
|
||
|
self.decorId = decorId
|
||
|
self.x = x
|
||
|
self.y = y
|
||
|
self.h = h
|
||
|
|
||
|
def __str__(self):
|
||
|
string = 'decorId=%d ' % self.decorId
|
||
|
string += '(%d,%d,%d) ' % (self.x, self.y, self.h)
|
||
|
return string
|
||
|
|
||
|
def __repr__(self):
|
||
|
return self.__str__()
|