def __init__(self, xmlnode=None): ItemBase.__init__(self, xmlnode) self.props = PropList() self.inventory = [] self.noun = None self._id = None
def assignParent(self, parent): ItemBase.assignParent(self, parent) if self.xmlnode.hasAttribute('id'): self.id = self.xmlnode.getAttribute('id')