-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-FeatureA new feature, making something new possibleA new feature, making something new possible
Description
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>)
vladbat00 and btrepp
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-FeatureA new feature, making something new possibleA new feature, making something new possible