bevy_mod_scripting icon indicating copy to clipboard operation
bevy_mod_scripting copied to clipboard

Dynamic queries

Open makspll opened this issue 3 years ago • 4 comments

Allow scripts querying for entities with different components.

  • [ ] Write (Owned only) Lua wrappers around bevy_ecs_dynamic
  • [ ] Add them to the APIProvider

makspll avatar Aug 02 '22 22:08 makspll

This would benefit from: https://github.com/jakobhellermann/bevy_mod_js_scripting/issues/5

makspll avatar Aug 02 '22 22:08 makspll

I started a new crate for dynamic bevy_ecs utilites over at https://github.com/jakobhellermann/bevy_ecs_dynamic

jakobhellermann avatar Aug 04 '22 11:08 jakobhellermann

Any guidance on how to get started implementing this?

JoeHowarth avatar Feb 13 '23 17:02 JoeHowarth

@JoeHowarth Sorry for delay, I want to give you an in-depth answer but just don't have the time to delve into this. I'll come back to you at some point!

In the meantime however, essentially you'd be changing the ReflectionPath structures, to contain whatever you need to work with bevy_ecs_dynamic and also all the code which uses their constructors which might be quite a few places

makspll avatar Feb 19 '23 16:02 makspll