public Game(IConsoleView console) { _mapPersistence = new Persistence<Map>(); if (File.Exists(MapFile)) { _map = _mapPersistence.Load(MapFile); } else { _map = new Map(); var generator = new Generator(_map); generator.GenerateLevel(); _mapPersistence.Save(_map, MapFile); } Console = console; Console.HideCursor(); }
public Generator( Map map ) { _map = map; }