mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
33 lines
843 B
C#
33 lines
843 B
C#
namespace MonoGame.Extended.Tiled;
|
|
|
|
public class TiledMapPropertyValue
|
|
{
|
|
public string Value { get; }
|
|
|
|
public TiledMapProperties Properties;
|
|
|
|
public TiledMapPropertyValue()
|
|
{
|
|
Value = string.Empty;
|
|
Properties = new();
|
|
}
|
|
|
|
public TiledMapPropertyValue(string value)
|
|
{
|
|
Value = value;
|
|
Properties = new();
|
|
}
|
|
|
|
public TiledMapPropertyValue(TiledMapProperties properties)
|
|
{
|
|
Value = string.Empty;
|
|
Properties = properties;
|
|
}
|
|
|
|
public override string ToString() => Value;
|
|
|
|
//public static implicit operator TiledMapPropertyValue(string value) => new(value);
|
|
public static implicit operator string(TiledMapPropertyValue value) => value.Value;
|
|
public static implicit operator TiledMapProperties(TiledMapPropertyValue value) => value.Properties;
|
|
}
|