oldschool-toontown/otp/level/AttribDesc.py

31 lines
656 B
Python
Raw Permalink Normal View History

2019-11-02 17:27:54 -05:00
class AttribDesc:
def __init__(self, name, default, datatype = 'string', params = {}):
self.name = name
self.default = default
self.datatype = datatype
self.params = params
def getName(self):
return self.name
def getDefaultValue(self):
return self.default
def getDatatype(self):
return self.datatype
def getParams(self):
return self.params
def __str__(self):
return self.name
def __repr__(self):
return 'AttribDesc(%s, %s, %s, %s)' % (repr(self.name),
repr(self.default),
repr(self.datatype),
repr(self.params))