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