示例#1
0
 def init(self):
     self.__battleType = self.__getExtra().eventType
     self.__updateVehicles()
     self.startGlobalListening()
     if self.isEnabled() and self.canChangeBattleType():
         g_eventDispatcher.addFalloutToCarousel()
     self._proxy.onSettingsChanged()
 def init(self):
     self.__battleType = self.__getExtra().eventType
     self.__updateVehicles()
     self.startGlobalListening()
     if self.isEnabled() and self.canChangeBattleType():
         g_eventDispatcher.addFalloutToCarousel()
     self._proxy.onSettingsChanged()
示例#3
0
 def init(self):
     self.__settings = g_settingsCore.serverSettings.getSection(SETTINGS_SECTIONS.FALLOUT, _SETTINGS_DEFAULTS)
     self.__vehicles = AccountSettings.getFavorites(FALLOUT_VEHICLES)
     self.__updateVehicles()
     g_itemsCache.onSyncCompleted += self.__onItemsResync
     if self.isEnabled() and self._proxy.isAvailable():
         g_eventDispatcher.addFalloutToCarousel()
     self._proxy.onSettingsChanged()
 def init(self):
     rosterType = self.unitFunctional.getRosterType()
     self.__battleType, _ = findFirst(lambda (k, v): v == rosterType, FALLOUT_QUEUE_TYPE_TO_ROSTER.iteritems(), (QUEUE_TYPE.UNKNOWN, None))
     self.__updateVehicles()
     self.startGlobalListening()
     if self.isEnabled():
         g_eventDispatcher.addFalloutToCarousel()
     super(_SquadDataStorage, self).init()
     return
 def init(self):
     self.__settings = g_settingsCore.serverSettings.getSection(
         SETTINGS_SECTIONS.FALLOUT, _SETTINGS_DEFAULTS)
     self.__vehicles = AccountSettings.getFavorites(FALLOUT_VEHICLES)
     self.__updateVehicles()
     g_itemsCache.onSyncCompleted += self.__onItemsResync
     if self.isEnabled() and self._proxy.isAvailable():
         g_eventDispatcher.addFalloutToCarousel()
     self._proxy.onSettingsChanged()
 def init(self):
     rosterType = self.unitFunctional.getRosterType()
     self.__battleType, _ = findFirst(
         lambda (k, v): v == rosterType,
         FALLOUT_QUEUE_TYPE_TO_ROSTER.iteritems(),
         (QUEUE_TYPE.UNKNOWN, None))
     self.__updateVehicles()
     self.startGlobalListening()
     g_clientUpdateManager.addCallbacks(
         {'inventory.1': self.__onVehiclesUpdated})
     if self.isEnabled():
         g_eventDispatcher.addFalloutToCarousel()
     super(_SquadDataStorage, self).init()
     return