pub fn trigger(event: impl Event) -> impl EntityCommand
Expand description
An EntityCommand
that sends a Trigger
targeting an entity.
This will run any Observer
of the given Event
watching the entity.
pub fn trigger(event: impl Event) -> impl EntityCommand
An EntityCommand
that sends a Trigger
targeting an entity.
This will run any Observer
of the given Event
watching the entity.