diff options
| author | Ignacio Etcheverry | 2017-10-24 01:54:47 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-10-24 15:48:58 +0200 |
| commit | e218a13a64d417505ba8ca0abb79dddfb943f2c7 (patch) | |
| tree | d8dbc2944129383e6f3e9823e9ea453b916baf96 /modules/mono/csharp_script.cpp | |
| parent | 9905002fa68f151f90a588a2c4b62b939ff31a0d (diff) | |
| download | godot-e218a13a64d417505ba8ca0abb79dddfb943f2c7.tar.gz godot-e218a13a64d417505ba8ca0abb79dddfb943f2c7.tar.zst godot-e218a13a64d417505ba8ca0abb79dddfb943f2c7.zip | |
Diffstat (limited to 'modules/mono/csharp_script.cpp')
| -rw-r--r-- | modules/mono/csharp_script.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index ba8c7df9c..30b84741f 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -279,11 +279,13 @@ Ref<Script> CSharpLanguage::get_template(const String &p_class_name, const Strin " }\n" "}\n"; - script_template = script_template.replace("%BASE_CLASS_NAME%", p_base_class_name).replace("%CLASS_NAME%", p_class_name); + script_template = script_template.replace("%BASE_CLASS_NAME%", p_base_class_name) + .replace("%CLASS_NAME%", p_class_name); Ref<CSharpScript> script; script.instance(); script->set_source_code(script_template); + script->set_name(p_class_name); return script; } @@ -295,7 +297,12 @@ Script *CSharpLanguage::create_script() const { bool CSharpLanguage::has_named_classes() const { - return true; + return false; +} + +bool CSharpLanguage::supports_builtin_mode() const { + + return false; } static String variant_type_to_managed_name(const String &p_var_type_name) { |
