2019-11-08 22:55:55 -06:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
2019-11-10 18:46:41 -06:00
|
|
|
from otp.distributed.DistributedDistrictAI import DistributedDistrictAI
|
2019-11-08 22:55:55 -06:00
|
|
|
|
2019-11-10 18:46:41 -06:00
|
|
|
class ToontownDistrictAI(DistributedDistrictAI):
|
2019-11-08 22:55:55 -06:00
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('ToontownDistrictAI')
|
2019-11-10 18:46:41 -06:00
|
|
|
|
|
|
|
def __init__(self, air):
|
|
|
|
DistributedDistrictAI.__init__(self, air)
|
|
|
|
self.ahnnLog = False
|
|
|
|
|
|
|
|
def allowAHNNLog(self, ahnnLog):
|
|
|
|
self.ahnnLog = ahnnLog
|
|
|
|
|
|
|
|
def d_allowAHNNLog(self, ahnnLog):
|
|
|
|
self.sendUpdate('allowAHNNLog', [ahnnLog])
|
|
|
|
|
|
|
|
def b_allowAHNNLog(self, ahnnLog):
|
|
|
|
self.allowAHNNLog(ahnnLog)
|
|
|
|
self.d_allowAHNNLog(ahnnLog)
|
|
|
|
|
|
|
|
def getAllowAHNNLog(self):
|
|
|
|
return self.ahnnLog
|