summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.h
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2019-03-03 16:36:42 -0300
committerGeorge Marques <george@gmarqu.es>2019-03-03 16:51:54 -0300
commitbda60bfa29a43315755bac92dc15fb0a1a30c22e (patch)
tree04b23f17700651850e109e43ca5b8187ff400af5 /modules/gdscript/gdscript.h
parent4f0590338f0506b74a3a154112598fadb442e13d (diff)
downloadredot-engine-bda60bfa29a43315755bac92dc15fb0a1a30c22e.tar.gz
Add a dependency search mode for GDScript parser
- This mode avoids loading any other resource. - Search for class_name now uses this mode, to avoid loading in the scan thread. - Implement get_dependencies() for GDScript loader, now exporting dependencies only should include the preloaded resources.
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r--modules/gdscript/gdscript.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h
index 86c00c0b59..ded873c7d3 100644
--- a/modules/gdscript/gdscript.h
+++ b/modules/gdscript/gdscript.h
@@ -511,6 +511,7 @@ public:
virtual void get_recognized_extensions(List<String> *p_extensions) const;
virtual bool handles_type(const String &p_type) const;
virtual String get_resource_type(const String &p_path) const;
+ virtual void get_dependencies(const String &p_path, List<String> *p_dependencies, bool p_add_types = false);
};
class ResourceFormatSaverGDScript : public ResourceFormatSaver {