Files
MonoGame.Extended/Source/MonoGame.Extended.Tiled/Serialization/TiledMapPropertyContent.cs
T

23 lines
553 B
C#

using System.Xml.Serialization;
namespace MonoGame.Extended.Tiled.Serialization
{
public class TiledMapPropertyContent
{
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "value")]
public string ValueAttribute { get; set; }
[XmlText]
public string ValueBody { get; set; }
public string Value => ValueAttribute ?? ValueBody;
public override string ToString()
{
return $"{Name}: {Value}";
}
}
}