Work on architecture. A lot of refractoring. Updated to unity 5.
This commit is contained in:
@ -9,11 +9,13 @@ namespace Assets.Scripts.Model.Config
|
||||
[XmlRoot("terrgenConfig")]
|
||||
public class TerrainGeneratorConfig
|
||||
{
|
||||
[XmlElement("noiseOctaves")]
|
||||
public int NoiseOctaves { get; set; }
|
||||
|
||||
[XmlElement("noiseNonLinearPower")]
|
||||
public float NoiseNonLinearPower { get; set; }
|
||||
|
||||
[XmlElement("elevationScale")]
|
||||
public float ElevationScale { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,17 @@ namespace TransportGame.Model
|
||||
/// </summary>
|
||||
public Biome Biome { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the heights array
|
||||
/// </summary>
|
||||
public float[,] Heights
|
||||
{
|
||||
get
|
||||
{
|
||||
return grid;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the map
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user