Expand description
Types for sending and receiving Event
s.
Structs§
- An
Event
sent immediately after a new global event is added to the world. - An
Event
sent immediately after a new targeted event is added to the world. - A
TargetedEvent
which removes an entity from theWorld
when sent. All components of the target entity are dropped. - Data needed to create a new event.
- Mutable reference to an instance of event
E
. - Type-erased pointer to an event. Passed to handlers in
Handler::run
. - Lightweight identifier for a global event type.
- A
GlobalEventId
with the generation count stripped out. - Contains all the metadata for an added
GlobalEvent
. - Stores metadata for all
GlobalEvent
s in the world. - A
TargetedEvent
which adds componentC
on an entity when sent. If the entity already has the component, then the component is replaced. - A
HandlerParam
which listens for events of typeE
. - Like
Receiver
, but provides mutable access to the received event. PreferReceiver
if mutable access is not needed. - An
Event
sent immediately before a global event is removed from the world. - An
Event
sent immediately before a targeted event is removed from the world. - A
HandlerParam
for sending events from the setT
. - A
GlobalEvent
which signals the creation of an entity. Contains theEntityId
of the new entity, which may or may not exist by the time this event is observed. - Lightweight identifier for a targeted event type.
- A
TargetedEventId
with the generation count stripped out. - Contains all the metadata for an added
TargetedEvent
. - Stores metadata for all
Event
s in the world.
Enums§
- An enum of either
GlobalEventId
orTargetedEventId
. - Additional behaviors for an event. This is used to distinguish normal user events from special built-in events.
- Indicates the absence of a
ReceiverQuery
. - A
TargetedEvent
which removes componentC
from an entity when sent. The component is dropped and cannot be recovered.
Traits§
- Messages which event handlers listen for. This is the base trait of
GlobalEvent
andTargetedEvent
. - Sealed marker trait implemented for
GlobalEventIdx
andTargetedEventIdx
. - A set of
Event
types. - An event which has no target entity.
- Targeted event queries used in
Receiver
andReceiverMut
. This trait is implemented for all types which implementQuery
. - An event which is directed at a particular entity.
Derive Macros§
- Derive macro for
Event
. SeeEvent
andGlobalEvent
’s documentation for more information. - Derive macro for
Event
. SeeEvent
andTargetedEvent
’s documentation for more information.