Beispiel #1
0
        internal static GameProcess Initialize(GamePreset gamePreset, Window appWindow)
        {
            var gameProcess = new GameProcess(gamePreset, appWindow);

            gameProcess.Load();
            return(gameProcess);
        }
Beispiel #2
0
 private void InitializeGameProcessTab()
 {
     _gameProcess                     = GameProcess.Initialize(_gamePreset, this);
     DelayField.Text                  = _gameProcess.Delay.ToString();
     AccuracyField.Text               = _gameProcess.AnalysisAccuracy.ToString();
     DispersionField.Text             = _gameProcess.Dispersion.ToString();
     MouseSpeedField.Text             = _gameProcess.MouseSpeed.ToString();
     MaxTurnDelayField.Text           = _gameProcess.MaxTurnDelay.ToString();
     _gameProcess.OnGameStateUpdated += OnGameStateUpdated;
     if (!GameProcessTab.IsSelected)
     {
         TabControl.SelectedIndex = 1;
     }
 }