Added maps

This commit is contained in:
Brady Bodily
2020-12-10 14:44:11 -07:00
parent 1cdf498800
commit 42dd13f7d6
16 changed files with 137 additions and 31 deletions

View File

@@ -5,9 +5,11 @@ namespace ConsoleApp
class Program
{
private static UserConsole _userConsole;
private static BootStrapper _bootstrapper;
static void Main(string[] args)
{
_bootstrapper = new BootStrapper();
_userConsole = new UserConsole();
StartSimulation();
}
@@ -30,8 +32,11 @@ namespace ConsoleApp
private static void RunSimulation(int x,int y)
{
var bootStrapper = new Bootstrapper
var simRunner = new SimRunner();
var simRunner = _bootstrapper.Resolve<ISimRunner>();
var mapFactory = _bootstrapper.Resolve<IMapFactory>();
mapFactory.GenerateMaps(x, y);
simRunner.Run();
}
}