Open
Description
openedon Jul 15, 2024
What problem does this solve or what need does it fill?
Event bubbling info currently requires manual implementation:
#[derive(Component)]
struct MyEvent;
impl Event for MyEvent {
type Traverse = Parent;
const AUTO_PROPAGATE: bool = true;
}
What solution would you like?
Allow the user to specify this information as proc macro attributes:
#[derive(Event)]
#[event(traverse = Parent, auto_propagate = true)]
struct MyEvent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Entities, components, systems, and eventsEntities, components, systems, and eventsA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useCode that generates Rust codeCode that generates Rust code