aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/csharp_script.h
diff options
context:
space:
mode:
authorAndreas Haas2018-03-09 23:34:32 +0100
committerHein-Pieter van Braam2018-04-15 00:48:11 +0200
commit6472d8c7d4db3aed63af028f227a97001f4b861f (patch)
treebffefe14bea63f24db8eb7c51d38a7d135d06118 /modules/mono/csharp_script.h
parente4fadebc3b6f1bb06a9a91e86f15a171cbdc0c4d (diff)
downloadgodot-6472d8c7d4db3aed63af028f227a97001f4b861f.tar.gz
godot-6472d8c7d4db3aed63af028f227a97001f4b861f.tar.zst
godot-6472d8c7d4db3aed63af028f227a97001f4b861f.zip
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)
Diffstat (limited to 'modules/mono/csharp_script.h')
-rw-r--r--modules/mono/csharp_script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h
index 1f609627d..866614911 100644
--- a/modules/mono/csharp_script.h
+++ b/modules/mono/csharp_script.h
@@ -294,6 +294,7 @@ public:
virtual bool is_using_templates();
virtual void make_template(const String &p_class_name, const String &p_base_class_name, Ref<Script> &p_script);
/* TODO */ virtual bool validate(const String &p_script, int &r_line_error, int &r_col_error, String &r_test_error, const String &p_path, List<String> *r_functions) const { return true; }
+ virtual String validate_path(const String &p_path) const;
virtual Script *create_script() const;
virtual bool has_named_classes() const;
virtual bool supports_builtin_mode() const;