summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/CMakeLists.txt1
-rw-r--r--core/include/turns/core/init.hpp11
-rw-r--r--core/src/init.cpp15
3 files changed, 27 insertions, 0 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index 4928843..245c7f7 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -2,6 +2,7 @@
add_library("core"
"src/disposition.cpp"
+ "src/init.cpp"
"src/participant.cpp"
"src/turn_order.cpp"
)
diff --git a/core/include/turns/core/init.hpp b/core/include/turns/core/init.hpp
new file mode 100644
index 0000000..f0dc70e
--- /dev/null
+++ b/core/include/turns/core/init.hpp
@@ -0,0 +1,11 @@
+#ifndef TURNS_CORE_INIT_HPP
+#define TURNS_CORE_INIT_HPP
+
+namespace turns::core
+{
+
+ auto register_types() -> void;
+
+} // namespace turns::core
+
+#endif \ No newline at end of file
diff --git a/core/src/init.cpp b/core/src/init.cpp
new file mode 100644
index 0000000..258aceb
--- /dev/null
+++ b/core/src/init.cpp
@@ -0,0 +1,15 @@
+#include "turns/core/init.hpp"
+
+#include "turns/core/participant.hpp"
+#include "turns/core/turn_order.hpp"
+
+namespace turns::core
+{
+
+ auto register_types() -> void
+ {
+ static_cast<void>(participant{});
+ static_cast<void>(turn_order{});
+ }
+
+} // namespace turns::core \ No newline at end of file