def fini(self, clientPrb = None, woEvents = False): prbType = self.getPrbType() super(BattleSessionFunctional, self).fini(clientPrb=clientPrb, woEvents=woEvents) if not woEvents: g_eventDispatcher.unloadBattleSessionWindow(prbType) else: g_eventDispatcher.removeSpecBattleFromCarousel(prbType) g_eventDispatcher.updateUI() g_eventBus.removeListener(ChannelCarouselEvent.CAROUSEL_INITED, self.__handleCarouselInited, scope=EVENT_BUS_SCOPE.LOBBY)
def fini(self, clientPrb = None, woEvents = False): prbType = self.getEntityType() super(BattleSessionFunctional, self).fini(clientPrb=clientPrb, woEvents=woEvents) if not woEvents: g_eventDispatcher.unloadBattleSessionWindow(prbType) else: g_eventDispatcher.removeSpecBattleFromCarousel(prbType) g_eventDispatcher.updateUI() g_eventBus.removeListener(ChannelCarouselEvent.CAROUSEL_INITED, self.__handleCarouselInited, scope=EVENT_BUS_SCOPE.LOBBY) return FUNCTIONAL_FLAG.UNDEFINED
def fini(self, clientPrb=None, ctx=None, woEvents=False): prbType = self.getEntityType() result = super(BattleSessionEntity, self).fini(clientPrb=clientPrb, ctx=ctx, woEvents=woEvents) if not woEvents: if not self.canSwitch(ctx) or ctx.hasFlags(FUNCTIONAL_FLAG.LEGACY | FUNCTIONAL_FLAG.BATTLE_SESSION): g_eventDispatcher.removeSpecBattleFromCarousel(prbType) else: g_eventDispatcher.removeSpecBattleFromCarousel(prbType, closeWindow=False) g_eventBus.removeListener(ChannelCarouselEvent.CAROUSEL_INITED, self.__handleCarouselInited, scope=EVENT_BUS_SCOPE.LOBBY) return result