def __onPlayerReady(self, result): if result: g_eventDispatcher.loadTrainingRoom() else: g_eventDispatcher.loadHangar() g_eventDispatcher.removeTrainingFromCarousel() g_eventDispatcher.addTrainingToCarousel(False)
def __onPlayerReady(self, result): if result: g_eventDispatcher.loadTrainingRoom() elif self.hasEntity(): g_eventDispatcher.loadHangar() g_eventDispatcher.removeTrainingFromCarousel() g_eventDispatcher.addTrainingToCarousel(False)
def __onPlayerReady(self, result): """ Callback for player set ready opertaion Args: result: was operation successful """ if result: g_eventDispatcher.loadTrainingRoom() else: g_eventDispatcher.loadHangar()
def __onPlayerReady(self, result): if result: g_eventDispatcher.loadTrainingRoom() else: g_eventDispatcher.loadHangar()
def __loadTrainingRoom(self, dispatcher): result = yield dispatcher.sendPrbRequest(prb_ctx.SetPlayerStateCtx(True, waitingID='prebattle/player_not_ready')) if result: g_eventDispatcher.loadTrainingRoom()
def __loadTrainingRoom(self, dispatcher): result = yield dispatcher.sendPrbRequest( prb_ctx.SetPlayerStateCtx(True, waitingID='prebattle/player_not_ready')) if result: g_eventDispatcher.loadTrainingRoom()