diff options
author | Raul Santos <raulsntos@gmail.com> | 2023-02-02 00:54:16 +0100 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2023-05-29 19:04:02 +0200 |
commit | a1f454fee353fadbdb6f7032b6458f92be46560c (patch) | |
tree | b5dd332d65aeee6745845cbffb7feabc1c59ed35 /modules/mono/mono_gd/gd_mono.h | |
parent | 2eec9a67d564b11326f44c5ef8b6b6f9aec251b9 (diff) | |
download | redot-engine-a1f454fee353fadbdb6f7032b6458f92be46560c.tar.gz |
C#: Add global class support
Co-authored-by: willnationsdev <willnationsdev@gmail.com>
Diffstat (limited to 'modules/mono/mono_gd/gd_mono.h')
-rw-r--r-- | modules/mono/mono_gd/gd_mono.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/mono/mono_gd/gd_mono.h b/modules/mono/mono_gd/gd_mono.h index 080b2c4669..04c375059d 100644 --- a/modules/mono/mono_gd/gd_mono.h +++ b/modules/mono/mono_gd/gd_mono.h @@ -59,8 +59,9 @@ struct PluginCallbacks { } // namespace gdmono class GDMono { - bool runtime_initialized; - bool finalizing_scripts_domain; + bool initialized = false; + bool runtime_initialized = false; + bool finalizing_scripts_domain = false; void *hostfxr_dll_handle = nullptr; bool is_native_aot = false; @@ -72,9 +73,9 @@ class GDMono { bool _load_project_assembly(); #endif - uint64_t api_core_hash; + uint64_t api_core_hash = 0; #ifdef TOOLS_ENABLED - uint64_t api_editor_hash; + uint64_t api_editor_hash = 0; #endif void _init_godot_api_hashes(); @@ -119,6 +120,9 @@ public: return singleton; } + _FORCE_INLINE_ bool is_initialized() const { + return initialized; + } _FORCE_INLINE_ bool is_runtime_initialized() const { return runtime_initialized; } |