Example #1
0
        public Map Random(RandomMapData mapData, MapObjectsData mapObjectsData)
        {
            var creator = new RandomMapCreator(mapData, mapObjectsData);

            return(Generate(creator));
        }
Example #2
0
        public Map LoadFrom(string path, MapObjectsData mapObjectsData)
        {
            var creator = new LoadMap(path, mapObjectsData);

            return(Generate(creator));
        }
Example #3
0
 public RandomMapCreator(RandomMapData data, MapObjectsData mapObjectsData)
 {
     _data           = data;
     _createdObjects = 0;
     _objects        = mapObjectsData.Objects;
 }