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

Scene makes no sense. Kill in favour of Space #21

Open
ikeycode opened this issue Mar 15, 2020 · 1 comment
Open

Scene makes no sense. Kill in favour of Space #21

ikeycode opened this issue Mar 15, 2020 · 1 comment

Comments

@ikeycode
Copy link
Collaborator

Literally it serves no purpose right now. We don't have a scene graph and kinda don't want one either.

Rather, we would prefer some notion of a Space, which has its own set of entities. This would allow us to hotswitch between two complete system states by updating which set of entities we have access to.

This would require storing a list of spaces within the EntityManager, each with their own independent storage buckets. The StagingArchetype and manifest would need to come from the parent EntityManager and a clear() operation would need to nuke all spaces. However each Space should also support a clear() too...

@ikeycode
Copy link
Collaborator Author

Many APIs would remain unchanged, and we could add a nice context.entity.space = API to dynamically switch the set of entities we engage with. We'll need this to permit GUI screens and level/room switching in the RPG demo.

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