aboutsummaryrefslogtreecommitdiffstats
path: root/tests/component_test.cpp
blob: e5a381cf55911316c219f2c0aacfacb2e7e0d99b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <yage/entity/entity.h>
#include <yage/entity/component.h>
#include <yage/entity/system.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();
}