aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/LoopManager.hpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-21 10:00:12 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-21 10:00:12 +0100
commitaa00be5fae68e4ccb7b592f1193d86f09105723a (patch)
tree47fcc6aad7b18723b926608e5177f677e4493801 /src/crepe/api/LoopManager.hpp
parent502fb8e8d1dcfe10f55fdef2cdfb71afec806204 (diff)
parent1bc04b371f2cc8740f2ee039f75101922da671d6 (diff)
Merge branch 'master' into loek/scripts
Diffstat (limited to 'src/crepe/api/LoopManager.hpp')
-rw-r--r--src/crepe/api/LoopManager.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crepe/api/LoopManager.hpp b/src/crepe/api/LoopManager.hpp
index 0b14fdb..9cf470b 100644
--- a/src/crepe/api/LoopManager.hpp
+++ b/src/crepe/api/LoopManager.hpp
@@ -11,6 +11,11 @@
namespace crepe {
template <class T>
+void LoopManager::add_scene() {
+ this->scene_manager.add_scene<T>();
+}
+
+template <class T>
T & LoopManager::get_system() {
using namespace std;
static_assert(is_base_of<System, T>::value,