Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement hecs Query for DynamicBundle #9

Closed
cart opened this issue May 29, 2020 · 1 comment
Closed

Implement hecs Query for DynamicBundle #9

cart opened this issue May 29, 2020 · 1 comment
Labels
A-ECS Entities, components, systems, and events C-Feature A new feature, making something new possible

Comments

@cart
Copy link
Member

cart commented May 29, 2020

This would provide useful shorthand in "function systems" when there are a lot of components. Something like:

#[derive(Bundle)]
struct MyBundle {
  a: ComponentA,
  b: ComponentB
}

fn some_system(component_group: Bundle<MyBundle>) {
  println!("a: {:?}", component_group.a);
  println!("b: {:?}", component_group.b);
}

Ideally it could be used alongside normal queries like (&MyComponent, Bundle<MyBundle>)

@cart cart changed the title Implement Legion View<'a> for EntityArchetype Implement hecs Query for DynamicBundle Jul 11, 2020
@karroffel karroffel added A-ECS Entities, components, systems, and events C-Feature A new feature, making something new possible labels Aug 12, 2020
@Plecra Plecra mentioned this issue Nov 5, 2020
@Moxinilian
Copy link
Member

Moxinilian commented Nov 23, 2020

Implemented in #798

jespersm pushed a commit to jespersm/bevy that referenced this issue Oct 22, 2022
Elabajaba pushed a commit to Elabajaba/bevy that referenced this issue Jun 6, 2023
nicoburns pushed a commit to nicoburns/bevy that referenced this issue Jun 19, 2024
tychedelia pushed a commit to tychedelia/bevy that referenced this issue Nov 23, 2024
…odulekeyfrom_members

use BitSet for ModuleKey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Feature A new feature, making something new possible
Projects
None yet
Development

No branches or pull requests

3 participants