From a8ebd43ab7d246669f1a8bb30fb780c07abe01d6 Mon Sep 17 00:00:00 2001 From: Alexander Holland Date: Mon, 4 Apr 2016 18:37:43 +0200 Subject: dictionary has_all --- core/dictionary.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/dictionary.cpp') diff --git a/core/dictionary.cpp b/core/dictionary.cpp index a013c21b29..75c8531251 100644 --- a/core/dictionary.cpp +++ b/core/dictionary.cpp @@ -110,6 +110,16 @@ bool Dictionary::has(const Variant& p_key) const { return _p->variant_map.has(p_key); } + +bool Dictionary::has_all(const Array& p_keys) const { + for (int i=0;ivariant_map.erase(p_key); -- cgit v1.2.3