diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-06-14 23:11:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 23:11:41 +0200 |
commit | 19017a760cbddee9bf0b40824ae9fbf5ca6d9042 (patch) | |
tree | c0338f78ed6a476261f16ee684f0654471eae5d5 /core | |
parent | 80de0c35df3aea7155c6e8026448896c3c749126 (diff) | |
parent | 8361b1ce07266350ef6b6a2d34411030b7e587b2 (diff) |
Merge pull request #9158 from Hinsbart/script_templates
Add ability to use custom script templates.
Diffstat (limited to 'core')
-rw-r--r-- | core/script_language.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h index 115ab59dca..6e39593a89 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -196,6 +196,8 @@ public: virtual void get_comment_delimiters(List<String> *p_delimiters) const = 0; virtual void get_string_delimiters(List<String> *p_delimiters) const = 0; virtual Ref<Script> get_template(const String &p_class_name, const String &p_base_class_name) const = 0; + virtual void make_template(const String &p_class_name, const String &p_base_class_name, Ref<Script> &p_script) {} + virtual bool is_using_templates() { return false; } 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 = 0; virtual Script *create_script() const = 0; virtual bool has_named_classes() const = 0; |