vnedilko / artemis-framework

Automatically exported from code.google.com/p/artemis-framework
0 stars 0 forks source link

Entity getComponents bug #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a World
2. Create a Entity and give it a 5 varying Component types
3. Call Entity refresh()
3. Call World loopStart() to refresh everything
3. Get the Entity components with getComponents() method or use a breakpoint to 
browse the contents of the EntityManager componentsByType list.

What is the expected output? What do you see instead?
I expect to see 5 components.  Instead depending on the ID of the Entity in my 
tests with only 1 entity in the World the getComponents() method returned 2 
components when it should've returned all 5.

What version of the product are you using? On what operating system?
Latest source from this.

Please provide any additional information below.
I found a work around is to create 50 or so Entities with all my components so 
that the componentsByType list has all the component bags initialized.

Original issue reported on code.google.com by captkirk...@gmail.com on 16 Jun 2012 at 6:26

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by arniar...@gmail.com on 30 Jul 2012 at 2:19