aboutsummaryrefslogtreecommitdiffstats
path: root/tests/component_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/component_test.cpp')
-rw-r--r--tests/component_test.cpp13
1 files changed, 13 insertions, 0 deletions
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 <yage/entity/entity.h>
+
+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();
+}