From 48f1d02da4795ba9d485fe5fe2bea907be2fc467 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 24 Jun 2015 13:29:23 -0300 Subject: added ability to define signals in script closes #2175 --- core/script_language.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/script_language.h') diff --git a/core/script_language.h b/core/script_language.h index 07ad571fda..c1b906e251 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -94,6 +94,10 @@ public: virtual ScriptLanguage *get_language() const=0; + virtual bool has_script_signal(const StringName& p_signal) const=0; + virtual void get_script_signal_list(List *r_signals) const=0; + + virtual void update_exports() {} //editor tool -- cgit v1.2.3 From a67486a39ee629acac068a6d014015944cf83bb3 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 26 Jun 2015 01:14:31 -0300 Subject: improved get_node(), connect(), etc code completion. -properly completes text arguments -includes the "/root" autoloads --- core/script_language.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'core/script_language.h') diff --git a/core/script_language.h b/core/script_language.h index c1b906e251..7104fe4547 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -126,6 +126,19 @@ public: virtual ~ScriptInstance(); }; +class ScriptCodeCompletionCache { + + static ScriptCodeCompletionCache *singleton; +public: + + virtual RES get_cached_resource(const String& p_path)=0; + + static ScriptCodeCompletionCache* get_sigleton() { return singleton; } + + ScriptCodeCompletionCache(); + +}; + class ScriptLanguage { public: -- cgit v1.2.3