From c9b75431f313fae16e9f4c9e60d7f5eaed0aaec0 Mon Sep 17 00:00:00 2001 From: Rémi Verschelde Date: Mon, 28 Mar 2022 15:48:38 +0200 Subject: Refactor GDScript/C# script templates logic to be editor-only Not a full refactor as it still goes through ScriptLanguage so it's hacky, but at least it can now compile without this. --- .../script_templates/EditorScript/basic_editor_script.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/mono/editor/script_templates/EditorScript/basic_editor_script.cs (limited to 'modules/mono/editor/script_templates/EditorScript') diff --git a/modules/mono/editor/script_templates/EditorScript/basic_editor_script.cs b/modules/mono/editor/script_templates/EditorScript/basic_editor_script.cs new file mode 100644 index 0000000000..1b347edc1c --- /dev/null +++ b/modules/mono/editor/script_templates/EditorScript/basic_editor_script.cs @@ -0,0 +1,15 @@ +// meta-description: Basic editor script template + +#if TOOLS +using _BINDINGS_NAMESPACE_; +using System; + +[Tool] +public partial class _CLASS_ : _BASE_ +{ + // Called when the script is executed (using File -> Run in Script Editor). + public override void _Run() + { + } +} +#endif -- cgit v1.2.3