diff options
| author | George Marques | 2018-05-01 11:06:23 -0300 |
|---|---|---|
| committer | George Marques | 2018-05-01 11:44:08 -0300 |
| commit | decf178033d4176b0955b8efa8a081f7bccd7ed1 (patch) | |
| tree | b69138dfb949dde62a8adfc206cdd9f9d478e4d9 /modules/gdscript/gdscript_compiler.h | |
| parent | 613a8bee415381a8564d34092b479e1f159e8e60 (diff) | |
| download | godot-decf178033d4176b0955b8efa8a081f7bccd7ed1.tar.gz godot-decf178033d4176b0955b8efa8a081f7bccd7ed1.tar.zst godot-decf178033d4176b0955b8efa8a081f7bccd7ed1.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | modules/gdscript/gdscript_compiler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.h b/modules/gdscript/gdscript_compiler.h index 62aafdbe0..237b0de9e 100644 --- a/modules/gdscript/gdscript_compiler.h +++ b/modules/gdscript/gdscript_compiler.h @@ -94,6 +94,9 @@ class GDScriptCompiler { HashMap<Variant, int, VariantHasher, VariantComparator> constant_map; Map<StringName, int> name_map; +#ifdef TOOLS_ENABLED + Vector<StringName> named_globals; +#endif int get_name_map_pos(const StringName &p_identifier) { int ret; |
