mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
28 lines
818 B
Python
Executable file
28 lines
818 B
Python
Executable file
from direct.directnotify import DirectNotifyGlobal
|
|
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
|
|
|
class DistributedGardenAI(DistributedObjectAI):
|
|
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenAI")
|
|
|
|
def __init__(self, air):
|
|
DistributedObjectAI.__init__(self, air)
|
|
self.air = air
|
|
self.props = []
|
|
|
|
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 setProps(self, props):
|
|
self.props = props
|
|
|
|
def d_sendNewProp(self, prop, x, y, z):
|
|
self.sendUpdate('sendNewProp', [prop, x, y, z])
|