Poodletooth-iLand/toontown/estate/DistributedGardenAI.py

36 lines
973 B
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistributedGardenAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenAI")
2015-05-10 12:00:38 +00:00
def __init__(self, air):
2015-05-12 20:52:38 +00:00
DistributedObjectAI.__init__(self, air)
2015-05-10 12:00:38 +00:00
self.air = air
self.props = []
2015-05-12 20:52:38 +00:00
def generate(self):
DistributedObjectAI.generate(self)
def announceGenerate(self):
DistributedObjectAI.announceGenerate(self)
def disable(self):
DistributedObjectAI.disable(self)
def delete(self):
DistributedObjectAI.delete(self)
def b_setProps(self, props):
self.setProps(props)
self.d_setProps(props)
def d_setProps(self, props):
aProps = []
for prop in props:
aProps = aProps + prop
self.sendUpdate('setProps', [aProps])
def setProps(self, props):
self.props = props