summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended.Tiled/TiledMapProperties.cs
blob: 651ae5dab53670b92be3f082afe0d551d7388dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System.Collections.Generic;

namespace MonoGame.Extended.Tiled
{
    public class TiledMapProperties : Dictionary<string, TiledMapPropertyValue>
    {
        public bool TryGetValue(string key, out string value)
        {
            bool result = TryGetValue(key, out TiledMapPropertyValue tmpVal);
            value = result ? null : tmpVal.Value;
            return result;
        }
    }
}