2015-03-03 22:10:12 +00:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from direct.distributed import DistributedObject
|
|
|
|
from otp.distributed import DistributedDistrict
|
|
|
|
|
|
|
|
class ToontownDistrict(DistributedDistrict.DistributedDistrict):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('ToontownDistrict')
|
|
|
|
|
|
|
|
def __init__(self, cr):
|
|
|
|
DistributedDistrict.DistributedDistrict.__init__(self, cr)
|
|
|
|
self.avatarCount = 0
|
|
|
|
self.newAvatarCount = 0
|
|
|
|
self.invasionStatus = 0
|
2015-03-05 12:02:30 +00:00
|
|
|
self.suitStatus = ''
|
2015-03-03 22:10:12 +00:00
|
|
|
|
|
|
|
def allowAHNNLog(self, allow):
|
|
|
|
self.allowAHNN = allow
|
|
|
|
|
|
|
|
def getAllowAHNNLog(self):
|
|
|
|
return self.allowAHNN
|