summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/variant/callable_custom.hpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-01-30 13:33:03 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-14 10:27:39 +0100
commitfb79d5ff9883af005c7aeae9994c463223a48c8c (patch)
tree6087ee88d52d1509cff7118ef6f81238d75e5353 /include/godot_cpp/variant/callable_custom.hpp
parente6b6df5893c7d9ead150f9f058b36c6352a152a9 (diff)
downloadredot-cpp-fb79d5ff9883af005c7aeae9994c463223a48c8c.tar.gz
Add support for getting argument count from `Callable`s
Diffstat (limited to 'include/godot_cpp/variant/callable_custom.hpp')
-rw-r--r--include/godot_cpp/variant/callable_custom.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/godot_cpp/variant/callable_custom.hpp b/include/godot_cpp/variant/callable_custom.hpp
index 34328f9..48a8142 100644
--- a/include/godot_cpp/variant/callable_custom.hpp
+++ b/include/godot_cpp/variant/callable_custom.hpp
@@ -41,6 +41,7 @@ class Object;
class CallableCustomBase {
public:
virtual ObjectID get_object() const = 0;
+ virtual int get_argument_count(bool &r_is_valid) const;
virtual void call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, GDExtensionCallError &r_call_error) const = 0;
virtual ~CallableCustomBase() {}
};