oldschool-toontown/otp/distributed/DistributedDistrictAI.py

38 lines
1,002 B
Python
Raw Normal View History

2019-11-10 18:46:41 -06:00
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
2019-11-27 23:17:22 -06:00
2019-11-10 18:46:41 -06:00
class DistributedDistrictAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedDistrictAI')
def __init__(self, air):
DistributedObjectAI.__init__(self, air)
self.name = ''
self.available = False
def setName(self, name):
self.name = name
def d_setName(self, name):
self.sendUpdate('setName', [name])
def b_setName(self, name):
self.setName(name)
self.d_setName(name)
def getName(self):
return self.name
def setAvailable(self, available):
self.available = available
def d_setAvailable(self, available):
self.sendUpdate('setAvailable', [available])
def b_setAvailable(self, available):
self.setAvailable(available)
self.d_setAvailable(available)
def getAvailable(self):
return self.available