diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-10-10 21:58:25 +0200 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-10-11 08:22:25 +0200 |
commit | 13c0a607475def7fb874114c156e35f82d5e98cf (patch) | |
tree | 62591a38b65bca50e37df55991c9c75f94b98997 /core/object | |
parent | 28f642097a7986867e4fb7d697764efb4db753bf (diff) |
Implement ScriptExtension::get_documentation
Diffstat (limited to 'core/object')
-rw-r--r-- | core/object/script_language_extension.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h index 15e2d57a3a..c32fb9d85b 100644 --- a/core/object/script_language_extension.h +++ b/core/object/script_language_extension.h @@ -82,7 +82,10 @@ public: GDVIRTUAL_REQUIRED_CALL(_get_documentation, doc); Vector<DocData::ClassDoc> class_doc; - // TODO: Missing conversion from documentation to ClassDoc. + for (int i = 0; i < doc.size(); i++) { + class_doc.append(DocData::ClassDoc::from_dict(doc[i])); + } + return class_doc; } #endif // TOOLS_ENABLED |