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.

25 lines (24 loc) 774 B
import { Behaviour } from "../Component.js"; import { EventList } from "../EventList.js"; export declare class SignalAsset { guid: string; } 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 timeline */ 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; }