示例#1
0
 def handleConnected(self):
     rootObj = DistributedDirectoryAI(self)
     rootObj.generateWithRequiredAndId(self.getGameDoId(), 0, 0)
     endpoint = config.GetString('rpc-server-endpoint', 'http://localhost:8080/')
     self.rpcServer = ToontownRPCServer(endpoint, ToontownRPCHandler(self))
     self.rpcServer.start(useTaskChain=True)
     self.backups = BackupManager.BackupManager(filepath='backups/', extension='.json')
     self.createGlobals()
     self.notify.info('Done.')
    def handleConnected(self):
        rootObj = DistributedDirectoryAI(self)
        rootObj.generateWithRequiredAndId(self.getGameDoId(), 0, 0)

        if config.GetBool('want-rpc-server', False):
            endpoint = config.GetString('rpc-server-endpoint', 'http://localhost:8080/')
            self.rpcServer = ToontownRPCServer(endpoint, ToontownRPCHandler(self))
            self.rpcServer.start(useTaskChain=True)

        self.createGlobals()
        self.notify.info('Done.')