Contents
Interface EventCondition.TrackedEvent<T extends EcsEvent>
- Type Parameters:
T- the ECS event type this condition listens for
- All Superinterfaces:
EventCondition
- All Known Implementing Classes:
EnterInstanceTeleporterCondition, EnterPortalCondition
- Enclosing interface:
EventCondition
A condition driven by a specific
EcsEvent type, additionally filtered by the
TrackedComponent of the entity that triggered it.
Use this when the condition only cares about events originating from entities that were
spawned by the same world event (e.g. "an entity tracked by this event was killed"). The
TrackedComponent carries the owning event's UUID and the context key that
identifies which prefab or action spawned the entity.
Like EventCondition.Event, implementations must declare and register an inner Handler
class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface EventCondition
EventCondition.Config, EventCondition.Event<T>, EventCondition.Ticking, EventCondition.TrackedEvent<T>, EventCondition.Type -
Field Summary
Fields inherited from interface EventCondition
ARRAY_CODEC, EMPTY_ARRAY, TYPE_CODEC -
Method Summary
Methods inherited from interface EventCondition
merge, onCancel, onComplete, onStart, reset, test
-
Method Details
-
eventType
-
handle
Processes an incoming ECS event together with the tracking component of the entity that triggered it.- Parameters:
world- the world in which the event was firedevent- the ECS eventtracked- theTrackedComponentfrom the entity that triggered the event
-