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

ECS - MultiEntity #162

Open
MakoEnergy opened this issue Jun 10, 2017 · 0 comments
Open

ECS - MultiEntity #162

MakoEnergy opened this issue Jun 10, 2017 · 0 comments

Comments

@MakoEnergy
Copy link
Member

Some Entities only make sense when implemented as multiple Entities. Some system will need to put into place to enable this. This could be done a few ways.

  1. A Meta-Entity object, designed to store multiple Entities. Most straightforward but the least flexible.
  2. Add a container that permits the storage of Entities to the Entity class. More flexible, allows a lot of recursion, but adds memory footprint to Entities that don't use this feature.
  3. Add a SubEntityComponent. Adds a pointer indirection, and updating of transforms could get messy in the sub-entity isn't aware it's attached, but resolves the issues of the other two systems.

Option 3 is the most likely to be chosen at the time of this writing.

This is 9. on #134 .

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

No branches or pull requests

1 participant