aboutsummaryrefslogtreecommitdiffstats
path: root/tests/component_test.cpp
blob: db42c2878d656ec5b8b5460ae0322cdaf50a5f6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
}