Expand description
Event handling types.
Re-exports§
pub use update::EventUpdates;
Structs§
- Event
Cursor - Stores the state for an
EventReader
orEventMutator
. - EventId
- An
EventId
uniquely identifies an event stored in a specificWorld
. - Event
Iterator - An iterator that yields any unread events from an
EventReader
orEventCursor
. - Event
Iterator With Id - An iterator that yields any unread events (and their IDs) from an
EventReader
orEventCursor
. - Event
MutIterator - An iterator that yields any unread events from an
EventMutator
orEventCursor
. - Event
MutIterator With Id - An iterator that yields any unread events (and their IDs) from an
EventMutator
orEventCursor
. - Event
Mutator - Mutably reads events of type
T
keeping track of which events have already been read by each system allowing multiple systems to read the same events. Ideal for chains of systems that all want to modify the same events. - Event
Reader - Reads events of type
T
in order and tracks which events have already been read. - Event
Registry - A registry of all of the
Events
in theWorld
, used byevent_update_system
to update all of the events. - Event
Writer - Sends events of type
T
. - Events
- 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
. - Send
Batch Ids Iterator
over sentEventIds
from a batch.- Send
Event - A command to send an arbitrary
Event
, used byCommands::send_event
.
Enums§
- Should
Update Events - Controls whether or not the events in an
EventRegistry
should be updated.
Traits§
- Event
- Something that “happens” and might be read / observed by app logic.
Functions§
- event_
update_ condition - A run condition for
event_update_system
. - event_
update_ system - A system that calls
Events::update
on all registeredEvents
in the world. - signal_
event_ update_ system - Signals the
event_update_system
to run afterFixedUpdate
systems.