summaryrefslogtreecommitdiffstats
path: root/tests/core/object/test_object.h
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-01-28 15:16:09 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-10 11:02:43 +0100
commit59bcc2888c0c6002428ed1040ef6b36957a80e98 (patch)
treee78cf547c47bb31e35827eff93f6e7c492399605 /tests/core/object/test_object.h
parent0ace0a129284ffc6646b199699c1607a316fcec0 (diff)
downloadredot-engine-59bcc2888c0c6002428ed1040ef6b36957a80e98.tar.gz
Add methods to get argument count of methods
Added to: * `Callable`s * `Object`s * `ClassDB` * `Script(Instance)`s
Diffstat (limited to 'tests/core/object/test_object.h')
-rw-r--r--tests/core/object/test_object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/core/object/test_object.h b/tests/core/object/test_object.h
index e5d91db650..3a3013a102 100644
--- a/tests/core/object/test_object.h
+++ b/tests/core/object/test_object.h
@@ -95,6 +95,12 @@ public:
bool has_method(const StringName &p_method) const override {
return false;
}
+ int get_method_argument_count(const StringName &p_method, bool *r_is_valid = nullptr) const override {
+ if (r_is_valid) {
+ *r_is_valid = false;
+ }
+ return 0;
+ }
Variant callp(const StringName &p_method, const Variant **p_args, int p_argcount, Callable::CallError &r_error) override {
return Variant();
}