diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-06-26 01:14:31 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-06-26 01:14:49 -0300 |
commit | a67486a39ee629acac068a6d014015944cf83bb3 (patch) | |
tree | b101b6b94481d1ac074f917620a9545f9e516089 /core | |
parent | 71cc2561c63b2b2bc692e370acbc8bb57f031567 (diff) |
improved get_node(), connect(), etc code completion.
-properly completes text arguments
-includes the "/root" autoloads
Diffstat (limited to 'core')
-rw-r--r-- | core/script_language.cpp | 8 | ||||
-rw-r--r-- | core/script_language.h | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/core/script_language.cpp b/core/script_language.cpp index 68ac7d0ae7..35c50b1022 100644 --- a/core/script_language.cpp +++ b/core/script_language.cpp @@ -136,6 +136,14 @@ ScriptInstance::~ScriptInstance() { } + +ScriptCodeCompletionCache *ScriptCodeCompletionCache::singleton=NULL; +ScriptCodeCompletionCache::ScriptCodeCompletionCache() { + singleton=this; +} + + + void ScriptLanguage::frame() { 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: |