- Added the
E: EntityEventbound toEventlistenerPlugin<E>, to move compile errors from adding the plugin, to the event itself. - Fixed a benchmark bug.
- Added helpful error message when
EntityEventderive macro fails to find#[target].
- Updated to Bevy
0.14.0
- Changed: Updated to Bevy
0.13. - Changed: BREAKING
EntityEvents no longer bubble by default.- If you are using
#[derive(EntityEvent)], you will need to add the#[can_bubble]attribute to enable bubbling. - If you are manually implementing the trait, you will need to override the default
can_bubbletrait method and returntrue.
- If you are using
- Changed: dissolved the
bevy_eventlistener_corecrate. - Changed:
commands_mut,target_commands_mut,target_component_mut,listener_commands_mut, andlistener_component_muthave been changed to provide a mutable reference toListenerInput<E>. This now makes it possible to callstop_propagation()from these functions. Fixes: #15.
- Fixed:
On<E>event listeners that mutate themselves inside a callback were being overwritten during cleanup.
- Fixed: event listeners adding extra delay when processing events.
- Changed: updated to bevy 0.12
- Changed: reduced overhead of callback
runfunction - Fixed: Does not compile if bevy_reflect's "documentation" feature is enabled after updating to 0.5. This fixed by removing the dependency of the derive crate on the core crate.
- Removed: public dead code trait CallbackSystemTrait has been removed.
- Removed: many dependencies have been removed by relying on bevy sub-crates.
- Added: public
EventListenerSetset label added, and all plugin systems added to the set.
- Changed: the plugin now runs in the
PreUpdateschedule, instead of theUpdateschedule. - Changed: all systems have been made public. This will allows users to rearrange the plugin for their needs, either running in another schedule, or building something entirely custom.
- Changed: relaxed bounds to support static
FnMutclosures forOnmethods instead of onlyfn - Added: new
event_listenerexample to guide users through how to use the supplied event listener methods. - Fixed: prelude now exports
ListenerInput