Expand description
Types for creating and storing Observer
s
Structs§
- Cached
Component Observers - Collection of
ObserverRunner
forObserver
registered to a particular trigger targeted at a specific component. - Cached
Observers - Collection of
ObserverRunner
forObserver
registered to a particular trigger. - Observed
By - Tracks a list of entity observers for the
Entity
ObservedBy
is added to. - Observer
- An
Observer
system. Add thisComponent
to anEntity
to turn it into an “observer”. - Observer
Descriptor - A description of what an
Observer
observes. - Observer
State - Contains
Observer
information. This defines how a given observer behaves. It is the “source of truth” for a given observer entity’s behavior. - Observer
Trigger - Event trigger metadata for a given
Observer
, - Observers
- Metadata for observers. Stores a cache mapping trigger ids to the registered observers.
- Trigger
- Type containing triggered
Event
information for a given run of anObserver
. This contains theEvent
data itself. If it was triggered for a specificEntity
, it includes that as well. It also contains event propagation information. SeeTrigger::propagate
for more information.
Traits§
- Trigger
Targets - Represents a collection of targets for a specific
Trigger
of anEvent
. Targets can be of typeEntity
orComponentId
.
Type Aliases§
- Observer
Runner - Type for function that is run when an observer is triggered.