diff options
author | Juan Linietsky <reduzio@gmail.com> | 2023-01-06 15:37:53 +0100 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2023-01-08 23:35:11 +0100 |
commit | 0e0ca01bce1adecde1de745d2b31d2ad0c12bf6b (patch) | |
tree | aea57faa3c7e1a1f7cc2816fba45c4a688422623 /doc | |
parent | b14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff) |
Properly report Callable bound arguments
Fixes #63213
Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Callable.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml index 1fb4f91920..36ac2e3ed0 100644 --- a/doc/classes/Callable.xml +++ b/doc/classes/Callable.xml @@ -100,6 +100,12 @@ Calls the method represented by this [Callable]. Unlike [method call], this method expects all arguments to be contained inside the [param arguments] [Array]. </description> </method> + <method name="get_bound_arguments_count" qualifiers="const"> + <return type="int" /> + <description> + Returns the total amount of arguments bound (or unbound) via successive [method bind] or [method unbind] calls. If the amount of arguments unbound is greater than the ones bound, this function returns a value less than zero. + </description> + </method> <method name="get_method" qualifiers="const"> <return type="StringName" /> <description> |