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)); }
public ControllerTesterPageViewModel( INavigationService navigationService, IGameControllerService gameControllerService) : base(navigationService) { _gameControllerService = gameControllerService; }
//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"); }
public DialogService(IGameControllerService gameControllerService) { _gameControllerService = gameControllerService; }