Skip to content
Snippets Groups Projects
Commit 1f194a7b authored by Ryan Chang's avatar Ryan Chang
Browse files

Final update

parent 888098b3
Branches master
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ public class BiomeData
public ParameterTargets parameterTargets;
[Tooltip("What is used to generate the terrain.")]
public List<Octave> shapeMap;
public List<Octave> shapeGenerate;
[Tooltip("What is used to map terrain materials to heights.")]
public List<TerrainHeightMap> terrainMap;
......@@ -27,7 +27,7 @@ public class BiomeData
/// </summary>
public void ReseedOctaves()
{
shapeMap = shapeMap.ReseedOctave();
shapeGenerate = shapeGenerate.ReseedOctaves();
}
/// <summary>
......
......@@ -4,6 +4,9 @@ using System.Collections.Generic;
using UnityEngine;
using NaughtyAttributes;
/// <summary>
/// Master class for biome generation.
/// </summary>
public class BiomeMaster : MonoBehaviour
{
#region Variables
......
......@@ -4,6 +4,9 @@ using System.Linq;
using UnityEngine;
using System.Collections.Generic;
/// <summary>
/// Parameter used to control the generation of the biome.
/// </summary>
[Serializable]
public class BiomeParameter
{
......@@ -32,6 +35,6 @@ public class BiomeParameter
/// </summary>
public void ReseedOctaves()
{
map = map.ReseedOctave();
map = map.ReseedOctaves();
}
}
\ No newline at end of file
/// <summary>
/// Defines the biome parameter range at which a specific biome shall spawn at.
/// </summary>
[System.Serializable]
public class BiomeParameterTarget
{
}
\ No newline at end of file
......@@ -82,7 +82,7 @@ public static class OctaveExtensions
/// </summary>
/// <param name="octaves">The list of octaves.</param>
/// <returns></returns>
public static List<Octave> ReseedOctave(this List<Octave> octaves)
public static List<Octave> ReseedOctaves(this List<Octave> octaves)
{
List<Octave> output = new(octaves.Count);
......
This repository will probably not see any more updates. I'm re-creating this
with support for biomes, foliage, materials, and multiple players. The new
repository can be [here](https://github.com/RyanChang0369/RyansTerrainGenerator).
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment