You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting components after multi-component indexes have already been created, all the entities with a single component match will be added to each group. This should instead only add entities that contain ALL of the components in the group.
Example of test that should succeed:
letworld=newWorld()world.entity().set('a').set('b')assert(world.get('a','b').length===1)world.get('a','b')[0].destroy()assert(world.get('a','b').length===0)world.entity().set('a')assert(world.get('a','b').length===0)// This throws an assertion error: length is 1, because by creating the entity above, it falsely added it to the index.// The rest of the test, even though it doesn't even make it here:world.entity().set('b')assert(world.get('a','b').length===0)world.entity().set('b').set('a')assert(world.get('a','b').length===1)
The text was updated successfully, but these errors were encountered:
When setting components after multi-component indexes have already been created, all the entities with a single component match will be added to each group. This should instead only add entities that contain ALL of the components in the group.
Example of test that should succeed:
The text was updated successfully, but these errors were encountered: