Expand description
Event handling types.
Structs§
- EventId
- An
EventIduniquely identifies an event stored in a specificWorld. - Event
Iterator - An iterator that yields any unread events from an
EventReaderorManualEventReader. - Event
Iterator With Id - An iterator that yields any unread events (and their IDs) from an
EventReaderorManualEventReader. - Event
Reader - Reads events of type
Tin order and tracks which events have already been read. - Event
Registry - A registry of all of the
Eventsin theWorld, used byevent_update_systemto 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::updatecalls. Events can be written to using anEventWriterand are typically cheaply read using anEventReader. - Manual
Event Reader - Stores the state for an
EventReader. - Send
Batch Ids Iteratorover sentEventIdsfrom a batch.
Enums§
- Should
Update Events - Controls whether or not the events in an
EventRegistryshould 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::updateon all registeredEventsin the world. - signal_
event_ update_ system - Signals the
event_update_systemto run afterFixedUpdatesystems.