Allow configuring the script filename casing rule
Defaults to "Auto", which detects the casing based on the preference of the currently selected language (C# for example prefers PascalCase whereas GDScript prefers snake_case).
This commit is contained in:
parent
a07dd0d6a5
commit
2bd714e34e
15 changed files with 103 additions and 57 deletions
|
|
@ -405,6 +405,10 @@ bool CSharpLanguage::supports_builtin_mode() const {
|
|||
return false;
|
||||
}
|
||||
|
||||
ScriptLanguage::ScriptNameCasing CSharpLanguage::preferred_file_name_casing() const {
|
||||
return SCRIPT_NAME_CASING_PASCAL_CASE;
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
struct VariantCsName {
|
||||
Variant::Type variant_type;
|
||||
|
|
|
|||
|
|
@ -518,6 +518,7 @@ public:
|
|||
virtual String _get_indentation() const;
|
||||
/* TODO? */ void auto_indent_code(String &p_code, int p_from_line, int p_to_line) const override {}
|
||||
/* TODO */ void add_global_constant(const StringName &p_variable, const Variant &p_value) override {}
|
||||
virtual ScriptNameCasing preferred_file_name_casing() const override;
|
||||
|
||||
/* SCRIPT GLOBAL CLASS FUNCTIONS */
|
||||
virtual bool handles_global_class_type(const String &p_type) const override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue