mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-06 06:10:06 +03:00
Use GDREGISTER defines in example
(cherry picked from commit a537b4af4d)
This commit is contained in:
committed by
David Snopek
parent
7e5fa8e7a9
commit
fc5366c026
@@ -132,7 +132,7 @@ void initialize_example_module(ModuleInitializationLevel p_level) {
|
|||||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ClassDB::register_class<Example>();
|
GDREGISTER_CLASS(Example);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -21,14 +21,14 @@ void initialize_example_module(ModuleInitializationLevel p_level) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ClassDB::register_class<ExampleRef>();
|
GDREGISTER_CLASS(ExampleRef);
|
||||||
ClassDB::register_class<ExampleMin>();
|
GDREGISTER_CLASS(ExampleMin);
|
||||||
ClassDB::register_class<Example>();
|
GDREGISTER_CLASS(Example);
|
||||||
ClassDB::register_class<ExampleVirtual>(true);
|
GDREGISTER_VIRTUAL_CLASS(ExampleVirtual);
|
||||||
ClassDB::register_abstract_class<ExampleAbstractBase>();
|
GDREGISTER_ABSTRACT_CLASS(ExampleAbstractBase);
|
||||||
ClassDB::register_class<ExampleConcrete>();
|
GDREGISTER_CLASS(ExampleConcrete);
|
||||||
ClassDB::register_class<ExampleBase>();
|
GDREGISTER_CLASS(ExampleBase);
|
||||||
ClassDB::register_class<ExampleChild>();
|
GDREGISTER_CLASS(ExampleChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninitialize_example_module(ModuleInitializationLevel p_level) {
|
void uninitialize_example_module(ModuleInitializationLevel p_level) {
|
||||||
|
|||||||
Reference in New Issue
Block a user