blob: d7a0893184269e9900ede854cfe30b340de9ef45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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;
}
|