public static FileInfo TryGetValueAsFile(this IDictionary <string, TiledImporterProperty> dict, string key) { TiledImporterProperty prop = dict.GetOrDefault(key); return(prop != null?prop.GetValueAsFile() : default);
public static bool TryGetValueAsBool(this IDictionary <string, TiledImporterProperty> dict, string key) { TiledImporterProperty prop = dict.GetOrDefault(key); return(prop != null?prop.GetValueAsBool() : false); }
public static Color TryGetValueAsColor(this IDictionary <string, TiledImporterProperty> dict, string key) { TiledImporterProperty prop = dict.GetOrDefault(key); return(prop != null?prop.GetValueAsColor() : Color.white); }