private void LoadSettings() { _game.SetupGame(_settings); _game.LoadData(); _game.Map = GameMaps.LoadMap(_game, _settings.MapName); _game.InitialiseGame(false); }
public void Setup() { var settings = GameSettings.Default(); _game = new StrategyGame(); _game.SetupGame(settings); _game.LoadData(); _game.Map = GameMaps.LoadMap(_game, settings.MapName); _game.InitialiseGame(); }
public void CheckFactionResearchTime() { var multiplier = 0.5f; _game.Faction[1].Bonuses.ResearchTime = multiplier; _game.InitialiseGame(false); for (var i = 0; i < _game.TechTree[0].TechItems.Count; i++) { var item1 = _game.TechTree[0].TechItems[i]; var item2 = _game.TechTree[1].TechItems[i]; item2.DurationTicks.ShouldBe((int)(multiplier * item1.DurationTicks)); } }