diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2023-04-12 23:19:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 23:19:27 +0200 |
commit | 5860b02b63943bd5c75c14244cb6b92fd4382ccc (patch) | |
tree | 6168ce65a1292dcdf1790a8e13d83b185b04f0f9 /core/variant/callable_bind.cpp | |
parent | d4dad2b2f88968ff329145f3dab5290478bae886 (diff) | |
parent | 33f674d0f7e94b768cd957a920fed8a215760ee2 (diff) | |
download | redot-engine-5860b02b63943bd5c75c14244cb6b92fd4382ccc.tar.gz |
Merge pull request #71644 from RandomShaper/mq_call_static
Complete support of callables of static methods
Diffstat (limited to 'core/variant/callable_bind.cpp')
-rw-r--r-- | core/variant/callable_bind.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/variant/callable_bind.cpp b/core/variant/callable_bind.cpp index 5be91c6e11..378d1ff618 100644 --- a/core/variant/callable_bind.cpp +++ b/core/variant/callable_bind.cpp @@ -75,6 +75,10 @@ CallableCustom::CompareLessFunc CallableCustomBind::get_compare_less_func() cons return _less_func; } +bool CallableCustomBind::is_valid() const { + return callable.is_valid(); +} + StringName CallableCustomBind::get_method() const { return callable.get_method(); } @@ -193,6 +197,10 @@ CallableCustom::CompareLessFunc CallableCustomUnbind::get_compare_less_func() co return _less_func; } +bool CallableCustomUnbind::is_valid() const { + return callable.is_valid(); +} + StringName CallableCustomUnbind::get_method() const { return callable.get_method(); } |