diff options
Diffstat (limited to 'extension/src/register_types.cpp')
-rw-r--r-- | extension/src/register_types.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extension/src/register_types.cpp b/extension/src/register_types.cpp index aac38b9..d1613a5 100644 --- a/extension/src/register_types.cpp +++ b/extension/src/register_types.cpp @@ -8,6 +8,7 @@ #include "TestSingleton.hpp" #include "Simulation.hpp" #include "Checksum.hpp" +#include "LoadLocalisation.hpp" using namespace godot; using namespace OpenVic2; @@ -15,6 +16,7 @@ using namespace OpenVic2; static TestSingleton* _test_singleton; static Simulation* _simulation; static Checksum* _checksum; +static LoadLocalisation* _load_localisation; void initialize_openvic2_types(ModuleInitializationLevel p_level) { @@ -34,6 +36,10 @@ void initialize_openvic2_types(ModuleInitializationLevel p_level) _checksum = memnew(Checksum); Engine::get_singleton()->register_singleton("Checksum", Checksum::get_singleton()); + ClassDB::register_class<LoadLocalisation>(); + _load_localisation = memnew(LoadLocalisation); + Engine::get_singleton()->register_singleton("LoadLocalisation", LoadLocalisation::get_singleton()); + } void uninitialize_openvic2_types(ModuleInitializationLevel p_level) { @@ -49,6 +55,9 @@ void uninitialize_openvic2_types(ModuleInitializationLevel p_level) { Engine::get_singleton()->unregister_singleton("Checksum"); memdelete(_checksum); + + Engine::get_singleton()->unregister_singleton("LoadLocalisation"); + memdelete(_load_localisation); } extern "C" |