mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
38 lines
983 B
C#
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; }
|
|
}
|
|
} |