Open
Description
What problem does this solve or what need does it fill?
Would remove boilerplate like
impl MapEntities for Foo {
fn map_entities<M: EntityMapper>(&mut self, entity_mapper: &mut M) {
self.a.map_entities(entity_mapper);
self.b.map_entities(entity_mapper);
}
}
What solution would you like?
A derive macro which can implement MapEntities for any struct where all its attributes implement MapEntities (like Debug and Default do).
What alternative(s) have you considered?
Just implementing it.
Metadata
Metadata
Assignees
Labels
Entities, components, systems, and eventsA targeted quality-of-life change that makes Bevy easier to useCode that generates Rust codeA "normal" level of difficulty; suitable for simple features or challenging fixesThis issue is ready for an implementation PR. Go for it!This work is generally agreed upon