mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
23 lines
553 B
C#
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}";
|
|
}
|
|
}
|
|
} |