Add Callable.is_valid() analogous to FuncRef.is_valid() from 3.x

This commit is contained in:
Lyuma
2021-06-30 07:36:46 -07:00
parent bb409efa1c
commit 8f1efa656b
4 changed files with 13 additions and 0 deletions

View File

@ -133,6 +133,13 @@
Returns [code]true[/code] if this [Callable] is a standard callable, referencing an object and a method using a [StringName].
</description>
</method>
<method name="is_valid" qualifiers="const">
<return type="bool">
</return>
<description>
Returns [code]true[/code] if the object exists and has a valid function assigned, or is a custom callable.
</description>
</method>
<method name="operator !=" qualifiers="operator">
<return type="bool">
</return>