You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Unify GDScriptAnalyzer in-editor and runtime autoload checks
This commit is contained in:
@@ -455,6 +455,9 @@ public:
|
||||
_FORCE_INLINE_ Variant *get_global_array() { return _global_array; }
|
||||
_FORCE_INLINE_ const HashMap<StringName, int> &get_global_map() const { return globals; }
|
||||
_FORCE_INLINE_ const HashMap<StringName, Variant> &get_named_globals_map() const { return named_globals; }
|
||||
// These two functions should be used when behavior needs to be consistent between in-editor and running the scene
|
||||
bool has_any_global_constant(const StringName &p_name) { return named_globals.has(p_name) || globals.has(p_name); }
|
||||
Variant get_any_global_constant(const StringName &p_name);
|
||||
|
||||
_FORCE_INLINE_ static GDScriptLanguage *get_singleton() { return singleton; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user