Module bevy_internal::ecs::event
source · Expand description
Event handling types.
Structs
- An
EventId
uniquely identifies an event stored in a specificWorld
. - An iterator that yields any unread events from an
EventReader
orManualEventReader
. - An iterator that yields any unread events (and their IDs) from an
EventReader
orManualEventReader
. - Reads events of type
T
in order and tracks which events have already been read. - Sends events of type
T
. - An event collection that represents the events that occurred within the last two
Events::update
calls. Events can be written to using anEventWriter
and are typically cheaply read using anEventReader
. - Stores the state for an
EventReader
.
Traits
- A type that can be stored in an
Events<E>
resource You can conveniently access events using theEventReader
andEventWriter
system parameter.
Functions
- A run condition that checks if the event’s
event_update_system
needs to run or not. - A system that calls
Events::update
. - Resets the
EventUpdateSignal
- Signals the
event_update_system
to run afterFixedUpdate
systems.