From 40d48773a393edadea97e501a4a47cd1746dadbe Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 15 Jun 2018 20:01:05 +0100 Subject: Adding components with test --- tests/component_test.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/component_test.cpp (limited to 'tests') diff --git a/tests/component_test.cpp b/tests/component_test.cpp new file mode 100644 index 00000000..db42c287 --- /dev/null +++ b/tests/component_test.cpp @@ -0,0 +1,13 @@ +#include + +struct Position { + double x; + double y; + + Position(double x_i, double y_i) : x(x_i), y(y_i) {} +}; + +int main() { + EntityManager em(); + Entity player = em.createEntity(); +} -- cgit