UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

36 lines (35 loc) 1.1 kB
import { Behaviour } from "../Component.js"; import { EventList } from "../EventList.js"; /** * Used to reference a signal asset in a SignalReceiver. This is internally used by the {@link SignalReceiverEvent}. */ export declare class SignalAsset { guid: string; } /** * An event that links a signal to a reaction. * Used internally by {@link SignalReceiver}. */ export declare class SignalReceiverEvent { signal: SignalAsset; reaction: EventList<void>; } /** SignalReceiver is a component that listens for signals and invokes a reaction when a signal is received. * Signals can be added to a signal track on a {@link PlayableDirector} * * @summary Receives signals and invokes reactions * @category Animation and Sequencing * @group Components */ export declare class SignalReceiver extends Behaviour { private static receivers; static invoke(guid: string): void; events?: SignalReceiverEvent[]; /** @internal */ awake(): void; /** @internal */ onEnable(): void; /** @internal */ onDisable(): void; invoke(sig: SignalAsset | string): void; }