From c42cab169e9d08c867a8972cd058a4bfe16eca41 Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 31 May 2024 21:18:42 +0200 Subject: [PATCH] fix: replaced uses of gd:: with godot:: --- util_functions.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util_functions.hpp b/util_functions.hpp index 1b74883..ac88df4 100644 --- a/util_functions.hpp +++ b/util_functions.hpp @@ -5,17 +5,17 @@ #include template -gd::Dictionary hashmap_to_dictionary(gd::HashMap const &map) { - gd::Dictionary dict{}; - for(gd::KeyValue const &kvp : map) +godot::Dictionary hashmap_to_dictionary(godot::HashMap const &map) { + godot::Dictionary dict{}; + for(godot::KeyValue const &kvp : map) dict[kvp.key] = kvp.value; return dict; } template -gd::HashMap dictionary_to_hashmap(gd::Dictionary const &dict) { - gd::HashMap map{}; - gd::Array keys{dict.keys()}; +godot::HashMap dictionary_to_hashmap(godot::Dictionary const &dict) { + godot::HashMap map{}; + godot::Array keys{dict.keys()}; for(size_t i = 0; i < keys.size(); ++i) map.insert(keys[i], dict[keys[i]]); return map;