From ea6cf1362b7a8baa5b46ce527e12a1af2592c20c Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 29 Oct 2024 16:04:40 -0400 Subject: [PATCH] Create a test for the ECS before we add more functionality. --- dinkyecs.hpp | 12 ++++++++++++ meson.build | 6 +----- systems.cpp | 1 - scratchpad/myecstest.cpp => tests/dinkyecs.cpp | 0 4 files changed, 13 insertions(+), 6 deletions(-) rename scratchpad/myecstest.cpp => tests/dinkyecs.cpp (100%) diff --git a/dinkyecs.hpp b/dinkyecs.hpp index 70e2d37..9e8011c 100644 --- a/dinkyecs.hpp +++ b/dinkyecs.hpp @@ -80,5 +80,17 @@ namespace DinkyECS { } } } + + /* + template + void send(int event, std::any data) { + + } + + template + std::tuple recv() { + + } + */ }; } diff --git a/meson.build b/meson.build index 757fda3..f66a786 100644 --- a/meson.build +++ b/meson.build @@ -24,6 +24,7 @@ runtests = executable('runtests', [ 'tests/map.cpp', 'tests/collider.cpp', 'tests/sound.cpp', + 'tests/dinkyecs.cpp', ], dependencies: dependencies) @@ -40,11 +41,6 @@ roguish = executable('roguish', [ ], dependencies: dependencies) -myecstest = executable('myecstest', [ - './scratchpad/myecstest.cpp' - ], - dependencies: dependencies) - collider = executable('collider', [ './scratchpad/collider.cpp' ], diff --git a/systems.cpp b/systems.cpp index 234505c..157ebb2 100644 --- a/systems.cpp +++ b/systems.cpp @@ -8,7 +8,6 @@ using std::string; using namespace fmt; - using namespace Components; #define HEARING_DISTANCE 8 diff --git a/scratchpad/myecstest.cpp b/tests/dinkyecs.cpp similarity index 100% rename from scratchpad/myecstest.cpp rename to tests/dinkyecs.cpp