mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add methods to get argument count of methods
Added to: * `Callable`s * `Object`s * `ClassDB` * `Script(Instance)`s
This commit is contained in:
parent
0ace0a1292
commit
59bcc2888c
50 changed files with 821 additions and 3 deletions
|
@ -68,6 +68,10 @@ StringName GDScriptRPCCallable::get_method() const {
|
|||
return method;
|
||||
}
|
||||
|
||||
int GDScriptRPCCallable::get_argument_count(bool &r_is_valid) const {
|
||||
return object->get_method_argument_count(method, &r_is_valid);
|
||||
}
|
||||
|
||||
void GDScriptRPCCallable::call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, Callable::CallError &r_call_error) const {
|
||||
r_return_value = object->callp(method, p_arguments, p_argcount, r_call_error);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue