Allow PluginScript to customize language's can_inherit_from_file attribute

This commit is contained in:
Emmanuel Leblond 2020-12-08 00:56:01 +01:00
parent efc2104096
commit 014efeb272
No known key found for this signature in database
GPG key ID: C360860E645EFFC0
3 changed files with 6 additions and 1 deletions

View file

@ -127,6 +127,7 @@ typedef struct {
const char **string_delimiters; // nullptr terminated array
godot_bool has_named_classes;
godot_bool supports_builtin_mode;
godot_bool can_inherit_from_file;
godot_string (*get_template_source_code)(godot_pluginscript_language_data *p_data, const godot_string *p_class_name, const godot_string *p_base_class_name);
godot_bool (*validate)(godot_pluginscript_language_data *p_data, const godot_string *p_script, int *r_line_error, int *r_col_error, godot_string *r_test_error, const godot_string *p_path, godot_packed_string_array *r_functions);