2019-11-09 03:20:04 +00:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from otp.distributed.OTPInternalRepository import OTPInternalRepository
|
2019-11-09 04:55:55 +00:00
|
|
|
from otp.distributed.OtpDoGlobals import *
|
2019-11-09 03:20:04 +00:00
|
|
|
|
|
|
|
class ToontownInternalRepository(OTPInternalRepository):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('ToontownInternalRepository')
|
2019-11-09 04:55:55 +00:00
|
|
|
GameGlobalsId = OTP_DO_ID_TOONTOWN
|
2019-11-09 03:20:04 +00:00
|
|
|
|
|
|
|
def __init__(self, baseChannel, serverId=None, dcFileNames=None, dcSuffix='AI', connectMethod=None, threadedNet=None):
|
|
|
|
OTPInternalRepository.__init__(self, baseChannel, serverId, dcFileNames, dcSuffix, connectMethod, threadedNet)
|
2019-11-17 21:29:23 +00:00
|
|
|
|
|
|
|
def _isValidPlayerLocation(self, parentId, zoneId):
|
2019-11-17 22:16:25 +00:00
|
|
|
if zoneId < 1000 and zoneId != 1:
|
2019-11-17 21:29:23 +00:00
|
|
|
return False
|
|
|
|
|
|
|
|
return True
|