public override void Generate() { var heightMap = new HeightMap(Size); SetLevels(); heightMap.Create(); RegenerateHeightMap(heightMap); heightMap.Save(Path.Combine(BaseDirectory, "dtm.raw")); }
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); }