You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user