Formateo del código
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
parent
bca8e245b5
commit
7c5d89d711
@ -16,33 +16,27 @@
|
||||
using namespace godot;
|
||||
|
||||
void initialize_test_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
}
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
}
|
||||
|
||||
ClassDB::register_class<Test>();
|
||||
ClassDB::register_class<Test>();
|
||||
}
|
||||
|
||||
void uninitialize_test_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
}
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
// Initialization.
|
||||
GDExtensionBool GDE_EXPORT
|
||||
test_library_init(const GDExtensionInterface *p_interface,
|
||||
GDExtensionClassLibraryPtr p_library,
|
||||
GDExtensionInitialization *r_initialization) {
|
||||
godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library,
|
||||
r_initialization);
|
||||
GDExtensionBool GDE_EXPORT test_library_init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
|
||||
godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization);
|
||||
init_obj.register_initializer(initialize_test_module);
|
||||
init_obj.register_terminator(uninitialize_test_module);
|
||||
init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE);
|
||||
|
||||
init_obj.register_initializer(initialize_test_module);
|
||||
init_obj.register_terminator(uninitialize_test_module);
|
||||
init_obj.set_minimum_library_initialization_level(
|
||||
MODULE_INITIALIZATION_LEVEL_SCENE);
|
||||
|
||||
return init_obj.init();
|
||||
return init_obj.init();
|
||||
}
|
||||
}
|
||||
|
@ -6,10 +6,10 @@
|
||||
using namespace godot;
|
||||
|
||||
class Test : public Node3D {
|
||||
GDCLASS(Test, Node3D);
|
||||
GDCLASS(Test, Node3D);
|
||||
|
||||
protected:
|
||||
static void _bind_methods() {}
|
||||
static void _bind_methods() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user