summaryrefslogtreecommitdiff
path: root/core/extension
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-08-25 12:35:30 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-09-22 23:31:27 +0300
commit163257d51bd103588da246d39ab5d10afaf15c09 (patch)
tree0d205a1890baeeef5b4560e41969275a4d7ac7e2 /core/extension
parent62792eeb9fac4f44272f59f95ec8eb3abc0432a7 (diff)
[GDExtension] Implement support for typed arrays.
Diffstat (limited to 'core/extension')
-rw-r--r--core/extension/extension_api_dump.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/extension/extension_api_dump.cpp b/core/extension/extension_api_dump.cpp
index bda1a5cdc1..310817c952 100644
--- a/core/extension/extension_api_dump.cpp
+++ b/core/extension/extension_api_dump.cpp
@@ -46,6 +46,9 @@ static String get_type_name(const PropertyInfo &p_info) {
return p_info.hint_string + "*";
}
}
+ if (p_info.type == Variant::ARRAY && (p_info.hint == PROPERTY_HINT_ARRAY_TYPE)) {
+ return String("typedarray::") + p_info.hint_string;
+ }
if (p_info.type == Variant::INT && (p_info.usage & (PROPERTY_USAGE_CLASS_IS_ENUM))) {
return String("enum::") + String(p_info.class_name);
}