예제 #1
0
        public override void Generate()
        {
            var heightMap = new HeightMap(Size);

            SetLevels();
            heightMap.Create();
            RegenerateHeightMap(heightMap);
            heightMap.Save(Path.Combine(BaseDirectory, "dtm.raw"));
        }
예제 #2
0
        public override void Generate()
        {
            var heightMap = new HeightMap <ushort>(Size);

            SetLevels();
            heightMap.Create();
            RegenerateHeightMap(heightMap);
            GenerateRoads(heightMap);
            //Erode(heightMap);

            heightMap.Save(Path.Combine(BaseDirectory, "dtm.raw"), arg => arg);
        }