diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-08-25 12:35:30 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-09-22 23:31:27 +0300 |
commit | 163257d51bd103588da246d39ab5d10afaf15c09 (patch) | |
tree | 0d205a1890baeeef5b4560e41969275a4d7ac7e2 /core/variant/variant_construct.cpp | |
parent | 62792eeb9fac4f44272f59f95ec8eb3abc0432a7 (diff) | |
download | redot-engine-163257d51bd103588da246d39ab5d10afaf15c09.tar.gz |
[GDExtension] Implement support for typed arrays.
Diffstat (limited to 'core/variant/variant_construct.cpp')
-rw-r--r-- | core/variant/variant_construct.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp index d048f45737..3b88dc11ca 100644 --- a/core/variant/variant_construct.cpp +++ b/core/variant/variant_construct.cpp @@ -200,6 +200,7 @@ void Variant::_register_variant_constructors() { add_constructor<VariantConstructNoArgs<Array>>(sarray()); add_constructor<VariantConstructor<Array, Array>>(sarray("from")); + add_constructor<VariantConstructorTypedArray>(sarray("base", "type", "class_name", "script")); add_constructor<VariantConstructorToArray<PackedByteArray>>(sarray("from")); add_constructor<VariantConstructorToArray<PackedInt32Array>>(sarray("from")); add_constructor<VariantConstructorToArray<PackedInt64Array>>(sarray("from")); |