private void CreateAndSerializeMap(Configuration config) { var mapGenerator = new MapGenerator(config); Map = mapGenerator.GenerateMap(); MapSerializator.Serialize(Map); }
static Battle GetBattle() { var map = MapSerializator.Deserialise(folder + mapFile); var strategy = StrategySerializator.Deserialize(folder + strategyFile); var enemyStrategy = StrategySerializator.Deserialize(folder + enemyStrategyFile); return(new Battle(map, strategy, enemyStrategy)); }