Added textures to biomes and an expression parser.
This commit is contained in:
@ -40,5 +40,11 @@ namespace TransportGame.Model
|
||||
/// </summary>
|
||||
[XmlElement("vegetationDensity")]
|
||||
public Range VegetationDensity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an array of textures to use
|
||||
/// </summary>
|
||||
[XmlArray("textures")]
|
||||
public Texture[] Textures { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -2,10 +2,17 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Assets.Scripts.Model
|
||||
namespace TransportGame.Model
|
||||
{
|
||||
class Texture
|
||||
[XmlRoot("texture")]
|
||||
public class Texture
|
||||
{
|
||||
[XmlAttribute("src")]
|
||||
public string Source { get; set; }
|
||||
|
||||
[XmlAttribute("expr")]
|
||||
public string Expression { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user