Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework the way ComponentType works #60

Open
denniskaselow opened this issue Sep 7, 2022 · 0 comments
Open

Rework the way ComponentType works #60

denniskaselow opened this issue Sep 7, 2022 · 0 comments
Milestone

Comments

@denniskaselow
Copy link
Owner

The static fields in ComponentType are a recipe for disaster in testing. When creating a multitude of different components and tests executed later, with fewer different components, use _forComponentsOfEntity in ComponentManager then they will run into out of bounds exceptions when accessing components (as is already happening in coverage where 4b8a029 doesn't help because of parallel execution of tests).

Maybe make the indexBit-creation/management of the component type part of the world. That should also make if possible to have multiple worlds if that's needed at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant