From decf178033d4176b0955b8efa8a081f7bccd7ed1 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 1 May 2018 11:06:23 -0300 Subject: Enable autoload in editor - Tool scripts will be executed and can be accessed by plugins. - Other script languages can implement add/remove_named_global_constant to make use of this functionality. --- core/script_language.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/script_language.h b/core/script_language.h index 0c1f99cea6..1cd27c07dc 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -236,6 +236,8 @@ public: virtual void auto_indent_code(String &p_code, int p_from_line, int p_to_line) const = 0; virtual void add_global_constant(const StringName &p_variable, const Variant &p_value) = 0; + virtual void add_named_global_constant(const StringName &p_name, const Variant &p_value) {} + virtual void remove_named_global_constant(const StringName &p_name) {} /* MULTITHREAD FUNCTIONS */ -- cgit v1.2.3