diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-05 10:09:45 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-05 10:09:45 +0200 |
commit | 5cee7b02640f1223f478504ca136d1cc0806e5b9 (patch) | |
tree | 91a8477350bfe7c4c4be2f3bd48f7608da4b7ac7 /core/object/script_language.h | |
parent | 5c26550b862da9c03dfda3f5994ccc480fcac44a (diff) | |
parent | ed0b3c08e15ee6345ece4b135a5e99870a8fc79f (diff) | |
download | redot-engine-5cee7b02640f1223f478504ca136d1cc0806e5b9.tar.gz |
Merge pull request #82767 from dalexeev/core-make-object-has-method-virtual
Core: Fix `Object::has_method()` for script static methods
Diffstat (limited to 'core/object/script_language.h')
-rw-r--r-- | core/object/script_language.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/object/script_language.h b/core/object/script_language.h index ca08e9837a..5ff7cd8582 100644 --- a/core/object/script_language.h +++ b/core/object/script_language.h @@ -145,7 +145,10 @@ public: virtual PropertyInfo get_class_category() const; #endif // TOOLS_ENABLED + // TODO: In the next compat breakage rename to `*_script_*` to disambiguate from `Object::has_method()`. virtual bool has_method(const StringName &p_method) const = 0; + virtual bool has_static_method(const StringName &p_method) const { return false; } + virtual MethodInfo get_method_info(const StringName &p_method) const = 0; virtual bool is_tool() const = 0; |