- Added the
E: EntityEvent
bound toEventlistenerPlugin<E>
, to move compile errors from adding the plugin, to the event itself. - Fixed a benchmark bug.
- Added helpful error message when
EntityEvent
derive macro fails to find#[target]
.
- Updated to Bevy
0.14.0
- Changed: Updated to Bevy
0.13
. - Changed: BREAKING
EntityEvent
s 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_bubble
trait method and returntrue
.
- If you are using
- Changed: dissolved the
bevy_eventlistener_core
crate. - Changed:
commands_mut
,target_commands_mut
,target_component_mut
,listener_commands_mut
, andlistener_component_mut
have 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
run
function - 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
EventListenerSet
set label added, and all plugin systems added to the set.
- Changed: the plugin now runs in the
PreUpdate
schedule, instead of theUpdate
schedule. - 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
FnMut
closures forOn
methods instead of onlyfn
- Added: new
event_listener
example to guide users through how to use the supplied event listener methods. - Fixed: prelude now exports
ListenerInput