def __doCreateChannel(self, prbType): if self.__channel: return settings = None if prbType == PREBATTLE_TYPE.SQUAD: settings = BATTLE_CHANNEL.SQUAD self.__channel = self._addChannel( entities.BWUnitChannelEntity(settings, prbType))
def __doCreateChannel(self, prbType): if self.__channel: return else: settings = None if prbType in (PREBATTLE_TYPE.SQUAD, PREBATTLE_TYPE.FALLOUT): settings = BATTLE_CHANNEL.SQUAD self.__channel = self._addChannel( entities.BWUnitChannelEntity(settings, prbType)) return