Expand description
Types for creating and storing Observers
Structs§
- Collection of
ObserverRunnerforObserverregistered to a particular trigger targeted at a specific component. - Collection of
ObserverRunnerforObserverregistered 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
Observerobserves. - Contains
Observerinformation. 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
Commandthat emits a given trigger for a given set of targets.
Traits§
- Represents a collection of targets for a specific
Triggerof anEvent. Targets can be of typeEntityorComponentId. When a trigger occurs for a given event andTriggerTargets, anyObserverthat watches for that specific event-target combination will run.
Type Aliases§
- Equivalent to
BoxedSystemforObserverSystem. - 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.