remove remaining astron references

This commit is contained in:
Open Toontown 2022-01-20 18:00:08 -05:00
parent 58c277c20b
commit ca8adde0c3
3 changed files with 6 additions and 8 deletions

View File

@ -1,20 +1,18 @@
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.AstronInternalRepository import AstronInternalRepository
from direct.distributed.ConnectionRepository import ConnectionRepository
from direct.distributed.PyDatagram import *
# TODO: Remove Astron dependence.
class OTPInternalRepository(AstronInternalRepository):
class OTPInternalRepository(ConnectionRepository):
notify = DirectNotifyGlobal.directNotify.newCategory('OTPInternalRepository')
dbId = 4003
def __init__(self, baseChannel, serverId, dcFileNames, dcSuffix, connectMethod, threadedNet):
AstronInternalRepository.__init__(self, baseChannel, serverId=serverId, dcFileNames=dcFileNames,
ConnectionRepository.__init__(self, baseChannel, serverId=serverId, dcFileNames=dcFileNames,
dcSuffix=dcSuffix, connectMethod=connectMethod, threadedNet=threadedNet)
def handleConnected(self):
AstronInternalRepository.handleConnected(self)
ConnectionRepository.handleConnected(self)
def getAccountIdFromSender(self):
return (self.getMsgSender() >> 32) & 0xFFFFFFFF

View File

@ -10,7 +10,7 @@ parser.add_argument('--stateserver', help='The control channel of this AI\'s des
parser.add_argument('--district-name', help='The name of the district on this AI server.')
parser.add_argument('--messagedirector-ip',
help='The IP address of the Message Director that this AI will connect to.')
parser.add_argument('--eventlogger-ip', help='The IP address of the Astron Event Logger that this AI will log to.')
parser.add_argument('--eventlogger-ip', help='The IP address of the OTP Event Logger that this AI will log to.')
parser.add_argument('config', nargs='*', default=['etc/Configrc.prc'],
help='PRC file(s) that will be loaded on this AI instance.')
args = parser.parse_args()

View File

@ -9,7 +9,7 @@ parser.add_argument('--max-channels', help='The number of channels that the serv
parser.add_argument('--stateserver', help='The control channel of this UberDOG\'s designated State Server.')
parser.add_argument('--messagedirector-ip',
help='The IP address of the Message Director that this UberDOG will connect to.')
parser.add_argument('--eventlogger-ip', help='The IP address of the Astron Event Logger that this UberDOG will log to.')
parser.add_argument('--eventlogger-ip', help='The IP address of the OTP Event Logger that this UberDOG will log to.')
parser.add_argument('config', nargs='*', default=['etc/Configrc.prc'],
help='PRC file(s) that will be loaded on this UberDOG instance.')
args = parser.parse_args()