rj00a / evenio

An event-driven Entity Component System
MIT License
133 stars 14 forks source link

Create dynamic query/system example. #16

Open rj00a opened 7 months ago

rj00a commented 7 months ago

Similar to https://github.com/bevyengine/bevy/blob/main/examples/ecs/dynamic.rs

AsterixxxGallier commented 1 month ago

I attempted to work on this issue, but evenio seems to not support dynamically inserting components into entities as of yet. The bevy example seems to rely on EntityWorldMut::insert_by_ids (that takes a bundle; insert_by_id is the single-component version and would also work). I couldn't find an equivalent function for inserting dynamic components in evenio. I assume this needs to be implemented first, before such an example can be written?