Files
MonoGame.Extended/Source/MonoGame.Extended.Content.Pipeline/Tiled/TmxTile.cs
T

38 lines
983 B
C#

using System.Collections.Generic;
using System.Xml.Serialization;
namespace MonoGame.Extended.Content.Pipeline.Tiled
{
public class TmxTile
{
public TmxTile()
{
Probability = 1.0f;
Properties = new List<TmxProperty>();
}
public override string ToString()
{
return Id;
}
[XmlAttribute(AttributeName = "id")]
public string Id { get; set; }
[XmlElement(ElementName = "terrain")]
public TmxTerrain Terrain { get; set; }
[XmlAttribute(AttributeName = "probability")]
public float Probability { get; set; }
[XmlElement(ElementName = "image")]
public TmxImage Image { get; set; }
[XmlElement(ElementName = "objectgroup")]
public List<TmxObjectGroup> ObjectGroups { get; set; }
[XmlArray("properties")]
[XmlArrayItem("property")]
public List<TmxProperty> Properties { get; set; }
}
}