public void ShowHostDialog(GameInfo filter)
        {
            using (var dialog = new HostDialog(filter))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                ActionHandler.StopBattle();

                ActionHandler.HostBattle(title: dialog.BattleTitle, password: dialog.Password, mode: dialog.Mode);
            }
        }
Пример #2
0
        public void ShowHostDialog(GameInfo filter)
        {
            using (var dialog = new HostDialog(filter))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                string[] springieCommands = dialog.SpringieCommands.Lines();

                ActionHandler.StopBattle();

                ActionHandler.SpawnAutohost(dialog.GameName, dialog.BattleTitle, dialog.Password, springieCommands);
            }
        }
        public void ShowHostDialog(GameInfo filter)
        {
            using (var dialog = new HostDialog(filter))
            {
                if (dialog.ShowDialog() != DialogResult.OK) return;
                string[] springieCommands = dialog.SpringieCommands.Lines();

                ActionHandler.StopBattle();

                ActionHandler.SpawnAutohost(dialog.GameName, dialog.BattleTitle, dialog.Password, springieCommands);
            }
        }
        public void ShowHostDialog(GameInfo filter)
        {
            using (var dialog = new HostDialog(filter))
            {
                if (dialog.ShowDialog() != DialogResult.OK) return;

                ActionHandler.StopBattle();

                ActionHandler.HostBattle(title: dialog.BattleTitle, password:dialog.Password, mode: dialog.Mode);
            }
        }