/
puma
/
ppa
Обзор
Документация
Войти
/
puma
/
ppa
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Core/Program.cs
37 строк
881 B
Margarita
new
21 май 2026, 22:30
21 май 2026, 22:30
a248bd2
Код
Авторство
О чём код?
using System; public class Program { static void Main() { DamageLogViewer.InitializeSessionNumber(); var _ = ObserverSettings.Current; var gameFlow = new GameFlowController(); var invoker = new CommandInvoker(); while (true) { int choice = gameFlow.ShowMainMenu(); IGameCommand? command = choice switch { 1 => new NewGameCommand(gameFlow), 2 => new LoadGameCommand(gameFlow), 3 => new ObserverSettingsCommand(gameFlow), 4 => new ExitCommand(), _ => null }; if (command == null) continue; if (command is ExitCommand) { invoker.Execute(command); return; } invoker.Execute(command); } } }