Пример #1
0
        private void InitializeLauncher()
        {
            launcherConfig = JsonHandler.LoadLauncherConfig();
            monitor        = new ProcessMonitor("EscapeFromTarkov", 1000, aliveCallback: null, exitCallback: GameExitCallback);
            serverManager  = new ServerManager();
            accountManager = new Account(launcherConfig);
            gameStarter    = new GameStarter();

            if (launcherConfig.Servers.Count == 0)
            {
                launcherConfig.Servers.Add("https://127.0.0.1");
                JsonHandler.SaveLauncherConfig(launcherConfig);
            }

            ShowServerSelectView();
        }
Пример #2
0
 private void OnStartGame(object sender, RoutedEventArgs e)
 {
     GameStarter starter = new GameStarter(GameLocation.Text, ClientBackendURL.Text, Email.Text, Password.Text);
 }