1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Add property usage to array indexer

This makes the `Array` indexer show as returning `Variant` instead of `void` in the documentation.
This commit is contained in:
Raul Santos
2023-01-18 21:57:47 +01:00
parent 6ca1bf9589
commit 97610c8bfc
4 changed files with 19 additions and 2 deletions

View File

@@ -750,6 +750,7 @@ void DocTools::generate(bool p_basic_types) {
MethodInfo mi;
mi.name = "operator []";
mi.return_val.type = Variant::get_indexed_element_type(Variant::Type(i));
mi.return_val.usage = Variant::get_indexed_element_usage(Variant::Type(i));
PropertyInfo arg;
arg.name = "index";
arg.type = Variant::INT;