TiledMapProperties.cs 405 B

1234567891011121314
  1. using System.Collections.Generic;
  2. namespace MonoGame.Extended.Tiled
  3. {
  4. public class TiledMapProperties : Dictionary<string, TiledMapPropertyValue>
  5. {
  6. public bool TryGetValue(string key, out string value)
  7. {
  8. bool result = TryGetValue(key, out TiledMapPropertyValue tmpVal);
  9. value = result ? tmpVal.Value : null;
  10. return result;
  11. }
  12. }
  13. }