2019-11-08 21:20:04 -06:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from otp.distributed.OTPInternalRepository import OTPInternalRepository
|
2019-11-08 22:55:55 -06:00
|
|
|
from otp.distributed.OtpDoGlobals import *
|
2019-11-08 21:20:04 -06:00
|
|
|
|
|
|
|
class ToontownInternalRepository(OTPInternalRepository):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('ToontownInternalRepository')
|
2019-11-08 22:55:55 -06:00
|
|
|
GameGlobalsId = OTP_DO_ID_TOONTOWN
|
2019-11-08 21:20:04 -06: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 15:29:23 -06:00
|
|
|
|
|
|
|
def _isValidPlayerLocation(self, parentId, zoneId):
|
2019-11-17 16:16:25 -06:00
|
|
|
if zoneId < 1000 and zoneId != 1:
|
2019-11-17 15:29:23 -06:00
|
|
|
return False
|
|
|
|
|
|
|
|
return True
|