Expand description
Structs§
- Cached
Component Observers - Collection of
ObserverRunnerforObserverregistered to a particular event targeted at a specific component. - Cached
Observers - Collection of
ObserverRunnerforObserverregistered to a particular event. - Observed
By - Tracks a list of entity observers for the
EntityObservedByis added to. - Observer
- An
Observersystem. Add thisComponentto anEntityto turn it into an “observer”. - Observer
Descriptor - Store information about what an
Observerobserves. - Observer
With Condition - An observer system with run conditions that preserves event type information.
- Observers
- An internal lookup table tracking all of the observers in the world.
- On
- A system parameter used by an observer to process events. See
ObserverandEventfor examples. - Trigger
Context - Metadata about a specific
Eventthat triggered an observer.
Traits§
- Into
Entity Observer - Trait for types that can be converted into an entity-targeting
Observer. - Into
Observer - Trait for types that can be converted into an
Observer. - Observer
System Ext - Extension trait for adding run conditions to observer systems.
Type Aliases§
- Observer
Map - Map between an observer entity and its
ObserverRunner - Observer
Runner - Type for function that is run when an observer is triggered.