public GameSession Initialization(string sessionName) { Logger.Info($"[{GetType().Name}]\t [Initialization]"); _gameSession = ScenarioConvertor.LoadGameSession(sessionName); _gameSession.Commands = new List <Command>(); return(_gameSession); }
public GameSession Initialization() { Logger.Info($"[{GetType().Name}]\t [Initialization]"); _gameSession = ScenarioConvertor.LoadGameSession("Map_OneShip"); //_gameSession = ScenarioConvertor.ToGameSession(ScenarioConvertor.GetSavedMap("Map_FirstBattle")); //_gameSession = ScenarioConvertor.ToGameSession(ScenarioConvertor.GetSavedMap("Map_005")); _gameSession.Commands = new List <Command>(); turnCalculation = new Timer(); turnCalculation.Elapsed += ExecuteTurnCalculation; turnCalculation.Interval = 1000; turnCalculation.Enabled = true; return(_gameSession); }