Exemple #1
0
        public Engine(GameConfiguration configuration, Stream logOutput = null)
        {
            Events = new ObservableCollection<GameEvent>();

            _logger = new Logger(logOutput);
            _configuration = configuration;
            _map = new GameMap(_configuration.MapPath);

            LoadBotTypes(_configuration.BotPathList);
        }
 public void Show(GameConfiguration configuration)
 {
     DataContext = new SimulatorViewModel(configuration);
     Show();
 }