Clean up type registration
This commit is contained in:
@@ -7,6 +7,14 @@
|
||||
|
||||
using namespace godot;
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef REDOT_MODULE_BUILD
|
||||
|
||||
#include "core/objects/class_db.h"
|
||||
|
||||
#endif
|
||||
|
||||
void initialize_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
@@ -21,6 +29,8 @@ void uninitialize_module(ModuleInitializationLevel p_level) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef GD_EXTENSION_BUILD
|
||||
|
||||
extern "C" {
|
||||
// Initialization.
|
||||
GDExtensionBool GDE_EXPORT extension_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, const GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
|
||||
@@ -34,13 +44,4 @@ GDExtensionBool GDE_EXPORT extension_init(GDExtensionInterfaceGetProcAddress p_g
|
||||
}
|
||||
}
|
||||
|
||||
#elif defined(GODOT_MODULE_BUILD)
|
||||
#include "register_types.h"
|
||||
|
||||
void register_types() {
|
||||
// Register classes here
|
||||
}
|
||||
|
||||
void unregister_types() {
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user