summaryrefslogtreecommitdiffstats
path: root/core/object/script_language_extension.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-07-06 15:31:19 +0200
committerGitHub <noreply@github.com>2022-07-06 15:31:19 +0200
commit635d447a69cea1bac19c8ffd2bfc38fc3753441d (patch)
tree1a3c713560f2c895e1b7080782a6380ad3cad290 /core/object/script_language_extension.h
parentea61cd3b320b145fc0dffb7056c01b5672432d90 (diff)
parenta9098e6147d294378bf7c62fb10c83a0d2670b33 (diff)
downloadredot-engine-635d447a69cea1bac19c8ffd2bfc38fc3753441d.tar.gz
Merge pull request #62713 from YuriSizov/docs-scripting-annotations
Diffstat (limited to 'core/object/script_language_extension.h')
-rw-r--r--core/object/script_language_extension.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h
index 7eea48370e..2c53139ec2 100644
--- a/core/object/script_language_extension.h
+++ b/core/object/script_language_extension.h
@@ -580,6 +580,15 @@ public:
p_constants->push_back(Pair<String, Variant>(d["name"], d["value"]));
}
}
+ GDVIRTUAL0RC(TypedArray<Dictionary>, _get_public_annotations)
+ virtual void get_public_annotations(List<MethodInfo> *p_annotations) const override {
+ TypedArray<Dictionary> ret;
+ GDVIRTUAL_REQUIRED_CALL(_get_public_annotations, ret);
+ for (int i = 0; i < ret.size(); i++) {
+ MethodInfo mi = MethodInfo::from_dict(ret[i]);
+ p_annotations->push_back(mi);
+ }
+ }
EXBIND0(profiling_start)
EXBIND0(profiling_stop)