mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Add default implementation of ScriptLanguageExtension::preferred_file_name_casing
.
This commit is contained in:
parent
03e6fbb010
commit
fdc5b42646
@ -389,7 +389,16 @@ public:
|
||||
EXBIND0RC(bool, can_make_function)
|
||||
EXBIND3R(Error, open_in_external_editor, const Ref<Script> &, int, int)
|
||||
EXBIND0R(bool, overrides_external_editor)
|
||||
EXBIND0RC(ScriptNameCasing, preferred_file_name_casing)
|
||||
|
||||
GDVIRTUAL0RC(ScriptNameCasing, _preferred_file_name_casing);
|
||||
|
||||
virtual ScriptNameCasing preferred_file_name_casing() const override {
|
||||
ScriptNameCasing ret;
|
||||
if (GDVIRTUAL_CALL(_preferred_file_name_casing, ret)) {
|
||||
return ret;
|
||||
}
|
||||
return ScriptNameCasing::SCRIPT_NAME_CASING_SNAKE_CASE;
|
||||
}
|
||||
|
||||
GDVIRTUAL3RC(Dictionary, _complete_code, const String &, const String &, Object *)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user