static void Main(string[] args) { IReader reader = new ConsoleReader(); IWritter writter = new ConsoleWritter(); Engine engine = new Engine(reader, writter); engine.Run(); }
static void Main(string[] args) { //var io = new IO(Console.ReadLine,x=>Console.WriteLine(x)); //var engine = new Engine(io); var engine = new Engine(new IO(), new BaseDB()); engine.Run(); }
public static void Main() { var buldingFactory = new BuildingFactory(); var unitFactory = new UnitFactory(); var resourceFactory = new ResourceFactory(); var reader = new ConsoleReader(); var writer = new ConsoleWriter(); var data = new EmpiresDate(); var engine = new Engine(buldingFactory, resourceFactory, unitFactory, data, reader, writer); engine.Run(); }