removed extra create functions from the registry (#52)

This commit is contained in:
Michele Caini
2018-04-06 22:06:44 +02:00
parent e99d7e2c3c
commit d81ecfec32
6 changed files with 312 additions and 168 deletions

View File

@@ -331,8 +331,12 @@ TEST(Mod, Duktape) {
FAIL();
}
registry.create(Position{ 0., 0. }, Renderable{});
registry.create(Position{ 0., 0. });
const auto e0 = registry.create();
registry.assign<Position>(e0, 0., 0.);
registry.assign<Renderable>(e0);
const auto e1 = registry.create();
registry.assign<Position>(e1, 0., 0.);
const char *s1 = ""
"Registry.entities(Types.POSITION, Types.RENDERABLE).forEach(function(entity) {"