From 3e94ecb3dac5003a3d58210ed1a4d1f1cb2083d1 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 12 Nov 2024 22:43:32 +0100 Subject: add script unit tests + major refactoring --- src/crepe/system/CMakeLists.txt | 19 ++++++++++--------- src/crepe/system/ScriptSystem.cpp | 23 ++++++++++++++++------- src/crepe/system/ScriptSystem.h | 5 +++-- src/crepe/system/System.cpp | 6 ++++++ src/crepe/system/System.h | 7 ++++++- 5 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 src/crepe/system/System.cpp (limited to 'src/crepe/system') diff --git a/src/crepe/system/CMakeLists.txt b/src/crepe/system/CMakeLists.txt index 4c18b87..9ee12f6 100644 --- a/src/crepe/system/CMakeLists.txt +++ b/src/crepe/system/CMakeLists.txt @@ -1,17 +1,18 @@ target_sources(crepe PUBLIC - ParticleSystem.cpp + System.cpp + # ParticleSystem.cpp ScriptSystem.cpp - PhysicsSystem.cpp - CollisionSystem.cpp - RenderSystem.cpp - AnimatorSystem.cpp + # PhysicsSystem.cpp + # CollisionSystem.cpp + # RenderSystem.cpp + # AnimatorSystem.cpp ) target_sources(crepe PUBLIC FILE_SET HEADERS FILES System.h ScriptSystem.h - PhysicsSystem.h - CollisionSystem.h - RenderSystem.h - AnimatorSystem.h + # PhysicsSystem.h + # CollisionSystem.h + # RenderSystem.h + # AnimatorSystem.h ) diff --git a/src/crepe/system/ScriptSystem.cpp b/src/crepe/system/ScriptSystem.cpp index f2673e7..0a87fcc 100644 --- a/src/crepe/system/ScriptSystem.cpp +++ b/src/crepe/system/ScriptSystem.cpp @@ -13,16 +13,24 @@ using namespace std; using namespace crepe; void ScriptSystem::update() { - using namespace std; dbg_trace(); - forward_list