Example #1
0
        public TravelWorld ToWorld()
        {
            var world = new TravelWorld(WorldGraph);

            world.PutWater(WaterPlaces.ToArray());
            foreach (var fireWay in FireWays)
            {
                world.SetFire(fireWay.Source, fireWay.Target);
            }
            foreach (var item in locations)
            {
                world.SetLocation(item.Key, item.Value);
            }
            return(world);
        }