join process optimization

This commit is contained in:
2018-12-27 14:46:11 +07:00
parent db62454eab
commit 58e0df89a7
2 changed files with 117 additions and 47 deletions

View File

@@ -530,7 +530,7 @@ TEST_CASE("registry") {
public:
void process(ecs::registry& owner) override {
owner.for_joined_components<position_c, velocity_c>([](
ecs::entity e, position_c& p, const velocity_c& v)
ecs::entity, position_c& p, const velocity_c& v)
{
p.x += v.x;
p.y += v.y;