Add support for x2 archetypes i a single system. #2
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
larssonmartin1998/atlas#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since the systems dont get the entire range of entities as a parameter, it's difficult to do any comparisons to other entities within that archetype. For instance, a collision detection system which would need to compare all transforms against all other transforms.
In order to keep our nice API which also enables chunking from Taskflow without off loading that to the game creation space, we need to add the ability for a system to request more than one tuple of components, i.e:
This would ideally be called like this from the system (not accounting for chunking of parallel workflow just visualising):
This will allow for the same nice API and scheduling while still enabling more complex systems. This should ALSO support different archetypes, meaning we could request tuples that have different components in it.