Expand description
Types for creating and storing Observer
s
Structs§
- Collection of
ObserverRunner
forObserver
registered to a particular trigger targeted at a specific component. - Collection of
ObserverRunner
forObserver
registered to a particular trigger. - Emit a trigger for a dynamic component id. This is unsafe and must be verified manually.
- A description of what an
Observer
observes. - Contains
Observer
information. This defines how a given observer behaves. It is the “source of truth” for a given observer entity’s behavior. - Event trigger metadata for a given
Observer
, - Metadata for observers. Stores a cache mapping trigger ids to the registered observers.
- A
Command
that emits a given trigger for a given set of targets.
Traits§
- Represents a collection of targets for a specific
Trigger
of anEvent
. Targets can be of typeEntity
orComponentId
. When a trigger occurs for a given event andTriggerTargets
, anyObserver
that watches for that specific event-target combination will run.
Type Aliases§
- Equivalent to
BoxedSystem
forObserverSystem
. - Type for function that is run when an observer is triggered. Typically refers to the default runner that runs the system stored in the associated [
ObserverSystemComponent
], but can be overridden for custom behaviour.