Skip to content

Implement hecs Query for DynamicBundle #9

Closed
@cart

Description

@cart

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>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions