From 9fa2355ceffefe3991e16ef4c3957f433fadd881 Mon Sep 17 00:00:00 2001 From: Paul Joannon Date: Sun, 4 Feb 2024 19:08:41 +0100 Subject: [PATCH] Disable signal callback generation in C# --- core/object/script_language.h | 1 + core/object/script_language_extension.cpp | 1 + core/object/script_language_extension.h | 1 + doc/classes/ScriptLanguageExtension.xml | 5 +++++ editor/connections_dialog.cpp | 23 +++++++++++++++++++++++ editor/connections_dialog.h | 2 ++ editor/plugins/script_editor_plugin.cpp | 4 ++++ editor/plugins/script_text_editor.cpp | 9 +++++++-- modules/mono/csharp_script.cpp | 21 +++++---------------- modules/mono/csharp_script.h | 1 + 10 files changed, 50 insertions(+), 18 deletions(-) diff --git a/core/object/script_language.h b/core/object/script_language.h index bb714d5bc35..cd36513d6be 100644 --- a/core/object/script_language.h +++ b/core/object/script_language.h @@ -256,6 +256,7 @@ public: virtual bool can_inherit_from_file() const { return false; } virtual int find_function(const String &p_function, const String &p_code) const = 0; virtual String make_function(const String &p_class, const String &p_name, const PackedStringArray &p_args) const = 0; + virtual bool can_make_function() const { return true; } virtual Error open_in_external_editor(const Ref