using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; using TransportGame.Utils; namespace TransportGame.Model { [XmlRoot("biome")] public class Biome { /// /// Gets or sets the name of the biome /// [XmlElement("name")] public string Name { get; set; } /// /// Gets or sets the maximum height of the biome. /// /// /// 1 unit = 100 meters. /// [XmlElement("height")] public float Height { get; set; } /// /// Gets or sets the moisture range. /// /// /// Moisture is the amount of water on a map. /// Value is a probability, should be between 0 and 1. /// [XmlElement("moisture")] public Range Moisture { get; set; } /// /// Gets or sets the vegetation density of the biome /// [XmlElement("vegetationDensity")] public Range VegetationDensity { get; set; } /// /// Gets or sets an array of textures to use /// [XmlArray("textures")] [XmlArrayItem("texture")] public Texture[] Textures { get; set; } /// /// Gets or sets the biome file name /// [XmlIgnore] public string FileName { get; set; } } }