Esempio n. 1
0
def getGuiServicesConfig(manager):
    """ Configures services for package gui.
    :param manager: helpers.dependency.DependencyManager
    """
    from gui import battle_control
    from gui import battle_results
    from gui import clans
    from gui import game_control
    from gui import goodies
    from gui import login
    from gui import lobby_context
    from gui import server_events
    from gui import shared
    from gui import sounds
    from gui import Scaleform as _sf
    from skeletons.gui.lobby_context import ILobbyContext
    manager.addConfig(shared.getSharedServices)
    manager.addConfig(game_control.getGameControllersConfig)
    manager.addConfig(_sf.getScaleformConfig)
    manager.addConfig(login.getLoginManagerConfig)
    manager.addConfig(server_events.getServerEventsConfig)
    manager.addConfig(battle_control.getBattleSessionConfig)
    manager.addConfig(sounds.getSoundsConfig)
    manager.addConfig(clans.getClanServicesConfig)
    manager.addConfig(goodies.getGoodiesCacheConfig)
    manager.addConfig(battle_results.getBattleResultsServiceConfig)
    manager.addInstance(ILobbyContext,
                        lobby_context.LobbyContext(),
                        finalizer='clear')
def getGuiServicesConfig(manager):
    from gui import battle_control
    from gui import battle_results
    from gui import wgcg
    from gui import customization
    from gui import event_boards
    from gui import game_control
    from gui import goodies
    from gui import login
    from gui import lobby_context
    from gui import server_events
    from gui import shared
    from gui import sounds
    from gui import Scaleform as _sf
    from gui import hangar_cameras
    from skeletons.gui.lobby_context import ILobbyContext
    manager.addConfig(shared.getSharedServices)
    manager.addConfig(game_control.getGameControllersConfig)
    manager.addConfig(_sf.getScaleformConfig)
    manager.addConfig(login.getLoginManagerConfig)
    manager.addConfig(server_events.getServerEventsConfig)
    manager.addConfig(battle_control.getBattleSessionConfig)
    manager.addConfig(sounds.getSoundsConfig)
    manager.addConfig(wgcg.getWebServicesConfig)
    manager.addConfig(event_boards.getEventServicesConfig)
    manager.addConfig(goodies.getGoodiesCacheConfig)
    manager.addConfig(battle_results.getBattleResultsServiceConfig)
    manager.addConfig(customization.getCustomizationServiceConfig)
    manager.addConfig(hangar_cameras.getHangarCamerasConfig)
    manager.addInstance(ILobbyContext,
                        lobby_context.LobbyContext(),
                        finalizer='clear')
Esempio n. 3
0
def getGuiServicesConfig(manager):
    from gui import app_loader
    from gui import battle_control
    from gui import battle_results
    from gui import wgcg
    from gui import customization
    from gui import event_boards
    from gui import game_control
    from gui import goodies
    from gui import login
    from gui import lobby_context
    from gui import server_events
    from gui import shared
    from gui import sounds
    from gui import Scaleform as _sf
    from gui import hangar_cameras
    from gui import impl
    from gui import offers
    from gui.platform import wgnp, catalog_service
    from skeletons.gui.lobby_context import ILobbyContext
    manager.addConfig(app_loader.getAppLoaderConfig)
    manager.addConfig(shared.getSharedServices)
    manager.addConfig(game_control.getGameControllersConfig)
    manager.addConfig(impl.getGuiImplConfig)
    manager.addConfig(login.getLoginManagerConfig)
    manager.addConfig(server_events.getServerEventsConfig)
    manager.addConfig(_sf.getScaleformConfig)
    manager.addConfig(battle_control.getBattleSessionConfig)
    manager.addConfig(sounds.getSoundsConfig)
    manager.addConfig(wgcg.getWebServicesConfig)
    manager.addConfig(event_boards.getEventServicesConfig)
    manager.addConfig(goodies.getGoodiesCacheConfig)
    manager.addConfig(goodies.getDemountKitNoveltyConfig)
    manager.addConfig(battle_results.getBattleResultsServiceConfig)
    manager.addConfig(customization.getCustomizationServiceConfig)
    manager.addConfig(hangar_cameras.getHangarCamerasConfig)
    manager.addConfig(promo.getPromoConfig)
    manager.addInstance(ILobbyContext,
                        lobby_context.LobbyContext(),
                        finalizer='clear')
    manager.addConfig(offers.getOffersConfig)
    manager.addConfig(server_events.getLinkedSetController)
    manager.addConfig(wgnp.getWGNPRequestControllers)
    manager.addConfig(catalog_service.getPurchaseCache)
    if HAS_DEV_RESOURCES:
        try:
            from gui.development import getDevelopmentServicesConfig
        except ImportError:
            _logger.exception('Package development can not be imported')
            return

        getDevelopmentServicesConfig(manager)