diff options
Diffstat (limited to 'core/variant/callable.cpp')
-rw-r--r-- | core/variant/callable.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/variant/callable.cpp b/core/variant/callable.cpp index 60549d567e..fd85fe78f6 100644 --- a/core/variant/callable.cpp +++ b/core/variant/callable.cpp @@ -151,6 +151,14 @@ StringName Callable::get_method() const { return method; } +int Callable::get_bound_arguments_count() const { + if (!is_null() && is_custom()) { + return custom->get_bound_arguments_count(); + } else { + return 0; + } +} + CallableCustom *Callable::get_custom() const { ERR_FAIL_COND_V_MSG(!is_custom(), nullptr, vformat("Can't get custom on non-CallableCustom \"%s\".", operator String())); @@ -358,6 +366,10 @@ const Callable *CallableCustom::get_base_comparator() const { return nullptr; } +int CallableCustom::get_bound_arguments_count() const { + return 0; +} + CallableCustom::CallableCustom() { ref_count.init(); } |