summaryrefslogtreecommitdiffstats
path: root/test/src/register_types.cpp
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-04-11 13:38:29 -0500
committerGitHub <noreply@github.com>2024-04-11 13:38:29 -0500
commit4b7661a60a4788cc7d5ce690cf8a5815b0aab511 (patch)
tree92131ccc757ccf8897f3766ac1779f8192e73f1e /test/src/register_types.cpp
parentb02124595f46ec9bf35d6b0636c9bf16750fbfb6 (diff)
parenta537b4af4ded29ee715a950f47887cb5367b9825 (diff)
downloadredot-cpp-4b7661a60a4788cc7d5ce690cf8a5815b0aab511.tar.gz
Merge pull request #1435 from Repiteo/example-use-defines
Use `GDREGISTER` defines in example
Diffstat (limited to 'test/src/register_types.cpp')
-rw-r--r--test/src/register_types.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/src/register_types.cpp b/test/src/register_types.cpp
index cbede66..7cfe689 100644
--- a/test/src/register_types.cpp
+++ b/test/src/register_types.cpp
@@ -21,15 +21,15 @@ void initialize_example_module(ModuleInitializationLevel p_level) {
return;
}
- ClassDB::register_class<ExampleRef>();
- ClassDB::register_class<ExampleMin>();
- ClassDB::register_class<Example>();
- ClassDB::register_class<ExampleVirtual>(true);
- ClassDB::register_abstract_class<ExampleAbstractBase>();
- ClassDB::register_class<ExampleConcrete>();
- ClassDB::register_class<ExampleBase>();
- ClassDB::register_class<ExampleChild>();
- ClassDB::register_runtime_class<ExampleRuntime>();
+ GDREGISTER_CLASS(ExampleRef);
+ GDREGISTER_CLASS(ExampleMin);
+ GDREGISTER_CLASS(Example);
+ GDREGISTER_VIRTUAL_CLASS(ExampleVirtual);
+ GDREGISTER_ABSTRACT_CLASS(ExampleAbstractBase);
+ GDREGISTER_CLASS(ExampleConcrete);
+ GDREGISTER_CLASS(ExampleBase);
+ GDREGISTER_CLASS(ExampleChild);
+ GDREGISTER_RUNTIME_CLASS(ExampleRuntime);
}
void uninitialize_example_module(ModuleInitializationLevel p_level) {