diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-15 20:01:05 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-15 20:01:05 +0100 |
commit | 40d48773a393edadea97e501a4a47cd1746dadbe (patch) | |
tree | f8351645e913f5fa432e5dcf1d0ed3c41c7f4112 /tests | |
parent | 65c75747db540be33dab64b23059de1387daf220 (diff) | |
download | YAGE-40d48773a393edadea97e501a4a47cd1746dadbe.tar.gz YAGE-40d48773a393edadea97e501a4a47cd1746dadbe.zip |
Adding components with test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component_test.cpp | 13 |
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(); +} |