summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-04-24 11:28:36 +0200
committerGitHub <noreply@github.com>2017-04-24 11:28:36 +0200
commit68870af2142ebe4fba181256b2cb4f79c7d33548 (patch)
treef0dccb7141a9f2018e5328f57993fc3096325397 /modules/gdscript
parent8032dd18dd41b2e07e2fd055d6ea9900859fc892 (diff)
parenta3afec588ce4f5643dcbae6d0e1ab14b898f6263 (diff)
Merge pull request #8420 from magyar123/pr-script-files-as-base
Added the ability to select files as base when creating scripts
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gd_script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.h b/modules/gdscript/gd_script.h
index f92c11b9e0..00ae136790 100644
--- a/modules/gdscript/gd_script.h
+++ b/modules/gdscript/gd_script.h
@@ -384,6 +384,7 @@ public:
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 = NULL) const;
virtual Script *create_script() const;
virtual bool has_named_classes() const;
+ virtual bool can_inherit_from_file() { return true; }
virtual int find_function(const String &p_function, const String &p_code) const;
virtual String make_function(const String &p_class, const String &p_name, const PoolStringArray &p_args) const;
virtual Error complete_code(const String &p_code, const String &p_base_path, Object *p_owner, List<String> *r_options, String &r_call_hint);