Skip to content

Commit 4b2318b

Browse files
committed
Renamed Height Algorithm to Height Source
1 parent 1bf51b1 commit 4b2318b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Low Poly Terrain Generator/Assets/Low Poly Terrain Generator/Generator/Height/HeightStrategyFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class HeightStrategyFactory {
3131
/// <param name="options">Options regarding the terrain</param>
3232
public static HeightStrategy Create(TerrainOptions options) {
3333
HeightStrategy strategy;
34-
switch (options.heightAlgorithm) {
34+
switch (options.heightSource) {
3535
case HeightStrategyType.Noise:
3636
strategy = new NoiseHeightStrategy(options.length, options.width, options.maximumHeight, options.scale);
3737
break;

Low Poly Terrain Generator/Assets/Low Poly Terrain Generator/Generator/Options/TerrainOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class TerrainOptions {
3232
[Min(0)]
3333
public int maximumHeight;
3434
public Material material;
35-
public HeightStrategyType heightAlgorithm;
35+
public HeightStrategyType heightSource;
3636
public Texture2D heightMap;
3737

3838
[Range(0.0f, 100.0f)]
@@ -43,7 +43,7 @@ public static TerrainOptions Default() {
4343
options.length = 30;
4444
options.width = 30;
4545
options.maximumHeight = 10;
46-
options.heightAlgorithm = HeightStrategyType.Random;
46+
options.heightSource = HeightStrategyType.Random;
4747
options.scale = 9.0f;
4848
return options;
4949
}

0 commit comments

Comments
 (0)