public PlayerPageViewModel(
            INavigationService navigationService,
            ITranslationService translationService,
            IDeviceManager deviceManager,
            IDialogService dialogService,
            IGameControllerService gameControllerService,
            IUIThreadService uIThreadService,
            IPlayLogic playLogic,
            NavigationParameters parameters)
            : base(navigationService, translationService)
        {
            _deviceManager         = deviceManager;
            _dialogService         = dialogService;
            _gameControllerService = gameControllerService;
            _uIThreadService       = uIThreadService;
            _playLogic             = playLogic;

            Creation      = parameters.Get <Creation>("creation");
            ActiveProfile = Creation.ControllerProfiles.First();

            CollectDevices();

            BuWizzOutputLevelChangedCommand  = new SafeCommand <int>(level => ChangeOutputLevel(level, _buwizzDevices));
            BuWizz2OutputLevelChangedCommand = new SafeCommand <int>(level => ChangeOutputLevel(level, _buwizz2Devices));
        }
예제 #2
0
 public ControllerTesterPageViewModel(
     INavigationService navigationService,
     IGameControllerService gameControllerService)
     : base(navigationService)
 {
     _gameControllerService = gameControllerService;
 }
예제 #3
0
        //private long _previousRoundId;

        public GameInstance(ILogger <GameInstance> logger, IGameControllerService svc, IOptions <AppSettings> config)
        {
            _logger = logger ?? throw new ArgumentNullException("logger");
            _svc    = svc ?? throw new ArgumentNullException("svc");
            _config = config ?? throw new ArgumentNullException("config");
        }
예제 #4
0
 public DialogService(IGameControllerService gameControllerService)
 {
     _gameControllerService = gameControllerService;
 }