From 6472d8c7d4db3aed63af028f227a97001f4b861f Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Fri, 9 Mar 2018 23:34:32 +0100 Subject: [PATCH] Mono: Avoid invalid class names. Disallow reserved keywords as class names and prefix base class with the Godot namespace if it's the same as the class name. Fixes #12483 (cherry picked from commit 700d07cf7cae4e28de107e0c274b27c857d98450) --- core/script_language.h | 1 + editor/script_create_dialog.cpp | 7 +++++++ modules/mono/csharp_script.cpp | 26 ++++++++++++++++++++++++-- modules/mono/csharp_script.h | 1 + 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/core/script_language.h b/core/script_language.h index d1da0a3b72d..6d32fc054ce 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -203,6 +203,7 @@ public: virtual void make_template(const String &p_class_name, const String &p_base_class_name, Ref