summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-08-30 09:59:05 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-08-30 09:59:05 +0200
commitf0ee0bdd376c7d32adb83754e4ae5899dba37f91 (patch)
treef83a92ae6141090d673aadf61cc2d229f1de3ffd /modules/gdscript/gdscript.h
parentb310e5e064ab44d594e1aca148e3ca41af3fb15a (diff)
parentef6f873938a7482962ca25e7b167eb5255718f3f (diff)
downloadredot-engine-f0ee0bdd376c7d32adb83754e4ae5899dba37f91.tar.gz
Merge pull request #93972 from Hilderin/fix-editor-needs-restart-after-adding-gdextensions
Fix editor needs restart after adding GDExtensions
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r--modules/gdscript/gdscript.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h
index 6527a0ea4d..4d21651365 100644
--- a/modules/gdscript/gdscript.h
+++ b/modules/gdscript/gdscript.h
@@ -417,6 +417,7 @@ class GDScriptLanguage : public ScriptLanguage {
Vector<Variant> global_array;
HashMap<StringName, int> globals;
HashMap<StringName, Variant> named_globals;
+ Vector<int> global_array_empty_indexes;
struct CallLevel {
Variant *stack = nullptr;
@@ -448,6 +449,7 @@ class GDScriptLanguage : public ScriptLanguage {
int _debug_max_call_stack = 0;
void _add_global(const StringName &p_name, const Variant &p_value);
+ void _remove_global(const StringName &p_name);
friend class GDScriptInstance;
@@ -467,6 +469,11 @@ class GDScriptLanguage : public ScriptLanguage {
HashMap<String, ObjectID> orphan_subclasses;
+#ifdef TOOLS_ENABLED
+ void _extension_loaded(const Ref<GDExtension> &p_extension);
+ void _extension_unloading(const Ref<GDExtension> &p_extension);
+#endif
+
public:
int calls;