def join(self, ctx, callback = None): result = True if not isinstance(ctx, pre_queue_ctx.JoinModeCtx): result = False LOG_ERROR('Invalid context to join historical mode', ctx) else: g_prbCtrlEvents.onPreQueueFunctionalCreated(QUEUE_TYPE.HISTORICAL, False, None) if callback: callback(result)
def join(self, ctx, callback=None): result = True if not isinstance(ctx, pre_queue_ctx.JoinModeCtx): result = False LOG_ERROR('Invalid context to join historical mode', ctx) else: g_prbCtrlEvents.onPreQueueFunctionalCreated( QUEUE_TYPE.HISTORICAL, False, None) if callback: callback(result)
def doAction(self, action = None, dispatcher = None): result = False if action is not None: actionName = action.actionName or _PAN.UNDEFINED if actionName in (_PAN.JOIN_RANDOM_QUEUE, _PAN.UNDEFINED) and g_currentVehicle.item.isOnlyForEventBattles: actionName = _PAN.JOIN_EVENT_BATTLES_QUEUE if actionName in self.CREATE_QUEUE_BY_ACTION: queueType, doAction = self.CREATE_QUEUE_BY_ACTION[actionName] g_prbCtrlEvents.onPreQueueFunctionalCreated(queueType, doAction, action) result = True return result
def doAction(self, action = None, dispatcher = None): result = False if action is not None: actionName = action.actionName or _PAN.UNDEFINED if actionName in (_PAN.JOIN_RANDOM_QUEUE, _PAN.UNDEFINED) and getFalloutCtrl().isSelected(): actionName = _PAN.JOIN_EVENT_BATTLES_QUEUE if actionName in self.CREATE_QUEUE_BY_ACTION: queueType, doAction = self.CREATE_QUEUE_BY_ACTION[actionName] g_prbCtrlEvents.onPreQueueFunctionalCreated(queueType, doAction, action) result = True return result
def doAction(self, action=None, dispatcher=None): result = False if action is not None: actionName = action.actionName or _PAN.UNDEFINED if actionName in (_PAN.JOIN_RANDOM_QUEUE, _PAN.UNDEFINED ) and getFalloutCtrl().isSelected(): actionName = _PAN.JOIN_EVENT_BATTLES_QUEUE if actionName in self.CREATE_QUEUE_BY_ACTION: queueType, doAction = self.CREATE_QUEUE_BY_ACTION[actionName] g_prbCtrlEvents.onPreQueueFunctionalCreated( queueType, doAction, action) result = True return result
def _goToFunctional(self): g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType)
def _goToFunctional(self): g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType) g_eventDispatcher.showFalloutWindow()
def _goToFunctional(self): g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType) g_eventDispatcher.showFalloutWindow()
def _goToFunctional(self): g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType)