summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_construct.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-06 22:38:13 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-06 22:38:13 +0200
commit0b4ae20156c1597671a748192ed8c032ed1d053e (patch)
treeebb6b242506eb6697e34962cce83e49f3ad96ec9 /core/variant/variant_construct.cpp
parentc9dc1eb1d59bf67bb123ed1ac5f9e0cfb93e275b (diff)
parent9853a691447cd4e279f48820067174d3833b0065 (diff)
downloadredot-engine-0b4ae20156c1597671a748192ed8c032ed1d053e.tar.gz
Merge pull request #78656 from Repiteo/typed-dictionary
Implement typed dictionaries
Diffstat (limited to 'core/variant/variant_construct.cpp')
-rw-r--r--core/variant/variant_construct.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp
index 1edae407c2..fb75a874e7 100644
--- a/core/variant/variant_construct.cpp
+++ b/core/variant/variant_construct.cpp
@@ -198,6 +198,7 @@ void Variant::_register_variant_constructors() {
add_constructor<VariantConstructNoArgs<Dictionary>>(sarray());
add_constructor<VariantConstructor<Dictionary, Dictionary>>(sarray("from"));
+ add_constructor<VariantConstructorTypedDictionary>(sarray("base", "key_type", "key_class_name", "key_script", "value_type", "value_class_name", "value_script"));
add_constructor<VariantConstructNoArgs<Array>>(sarray());
add_constructor<VariantConstructor<Array, Array>>(sarray("from"));