示例#1
0
        private void CreateAndSerializeMap(Configuration config)
        {
            var mapGenerator = new MapGenerator(config);

            Map = mapGenerator.GenerateMap();
            MapSerializator.Serialize(Map);
        }
示例#2
0
        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));
        }