You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
Some developers would prefer being able to trigger EntityEvents in the
old "chained" way.
## Solution
Add support for the following:
```rust
commands.entity(e1).trigger(|entity| Explode { entity })
// alternatively if From<Entity> is implemented
commands.entity(e1).trigger(Explode::from)
// alternatively if it is Explode(Entity)
commands.entity(e1).trigger(Explode)
```
---------
Co-authored-by: Alice Cecile <[email protected]>
Co-authored-by: akimakinai <[email protected]>
Co-authored-by: Jan Hohenheim <[email protected]>
log::warn!("EntityCommands::trigger is deprecated and no longer triggers the event for the current EntityCommands entity. Use Commands::trigger instead with an EntityEvent.");
log::warn!("EntityWorldMut::trigger is deprecated and no longer triggers the event for the current EntityWorldMut entity. Use World::trigger instead with an EntityEvent.");
0 commit comments