EventSource
Defined in: EventToken.ts:50
Something that dispatches typed events to subscribers: an Entity, whose
events also bubble to its scene, or a StateMachine, whose events stay on
the machine. Component.listen subscribes to either and unsubscribes when
the component is removed.
Methods
Section titled “Methods”on<
T>(token,handler): () =>void
Defined in: EventToken.ts:51
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”EventToken<T>
handler
Section titled “handler”(data) => void
Returns
Section titled “Returns”() => void
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.