diff options
Diffstat (limited to 'core/variant/dictionary.h')
-rw-r--r-- | core/variant/dictionary.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/dictionary.h b/core/variant/dictionary.h index 8935d35ed9..67178ee7b7 100644 --- a/core/variant/dictionary.h +++ b/core/variant/dictionary.h @@ -58,11 +58,13 @@ public: Variant get_valid(const Variant &p_key) const; Variant get(const Variant &p_key, const Variant &p_default) const; + Variant get_or_add(const Variant &p_key, const Variant &p_default); int size() const; bool is_empty() const; void clear(); void merge(const Dictionary &p_dictionary, bool p_overwrite = false); + Dictionary merged(const Dictionary &p_dictionary, bool p_overwrite = false) const; bool has(const Variant &p_key) const; bool has_all(const Array &p_keys) const; |