| 1234567891011121314151617181920212223242526272829303132 |
- 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;
- }
|