Add support for getting argument count from Callables

This commit is contained in:
A Thousand Ships
2024-01-30 13:33:03 +01:00
parent e6b6df5893
commit fb79d5ff98
9 changed files with 117 additions and 8 deletions

View File

@@ -49,6 +49,11 @@ public:
return ObjectID();
}
virtual int get_argument_count(bool &r_is_valid) const {
r_is_valid = true;
return 2;
}
virtual void call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, GDExtensionCallError &r_call_error) const {
r_return_value = "Hi";
r_call_error.error = GDEXTENSION_CALL_OK;