Exemple #1
0
        public static FileInfo TryGetValueAsFile(this IDictionary <string, TiledImporterProperty> dict, string key)
        {
            TiledImporterProperty prop = dict.GetOrDefault(key);

            return(prop != null?prop.GetValueAsFile() : default);
Exemple #2
0
        public static bool TryGetValueAsBool(this IDictionary <string, TiledImporterProperty> dict, string key)
        {
            TiledImporterProperty prop = dict.GetOrDefault(key);

            return(prop != null?prop.GetValueAsBool() : false);
        }
Exemple #3
0
        public static Color TryGetValueAsColor(this IDictionary <string, TiledImporterProperty> dict, string key)
        {
            TiledImporterProperty prop = dict.GetOrDefault(key);

            return(prop != null?prop.GetValueAsColor() : Color.white);
        }