summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--README.md2
-rw-r--r--test/src/register_types.cpp18
3 files changed, 11 insertions, 11 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 938afdd..8925852 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -117,7 +117,7 @@ jobs:
- name: Web dependencies
if: ${{ matrix.platform == 'web' }}
- uses: mymindstorm/setup-emsdk@v13
+ uses: mymindstorm/setup-emsdk@v14
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
diff --git a/README.md b/README.md
index f4f3be0..ca9a738 100644
--- a/README.md
+++ b/README.md
@@ -132,7 +132,7 @@ void initialize_example_module(ModuleInitializationLevel p_level) {
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
return;
}
- ClassDB::register_class<Example>();
+ GDREGISTER_CLASS(Example);
}
```
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) {