Closed minecrawler closed 2 years ago
After investigating this for some time, a good implementation leads to a type mess, and there is a simple workaround: create a component which wraps an array. PRs are welcome, if someone comes up with a clever implementation!
The trick is to create an Object known to the system which contains an array of a certain component. Whenever sim-ecs is confronted with this type or object, it knows how to handlw it. The user API could look like this: