3 ms·
It arguably conflicts a bit, because in an ECS, you can have notions of, say, Movable and Damageable, but there's no way to write a function applies to things w
by twic 6y ago
It arguably conflicts a bit, because in an ECS, you can have notions of, say, Movable and Damageable, but there's no way to write a function applies to things which are both Movable and Damageable, right? The closest you could get would be a function which takes both a Movable and a Damageable, and has to trust that they correspond to the same entity.
- adamnemecek 6y agoNo actually, you query both and as you iterate through the results, the current element is one that has both. Look at some examples of the Rust ECS framework specs.