mirror of
https://github.com/Mestima/GodotHook.git
synced 2025-06-27 20:59:30 +00:00
Module updated to 4.x Godot version
This commit is contained in:
@ -1,14 +1,17 @@
|
||||
/* register_types.cpp */
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
#include "core/class_db.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "hook.h"
|
||||
|
||||
void register_hook_types() {
|
||||
ClassDB::register_class<Hook>();
|
||||
void initialize_hook_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
ClassDB::register_class<Hook>();
|
||||
}
|
||||
}
|
||||
|
||||
void unregister_hook_types() {
|
||||
// Nothing to do here in this example.
|
||||
void uninitialize_hook_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user