UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

33 lines (32 loc) 1.45 kB
import { FlowGraphAsyncExecutionBlock } from "../../../flowGraphAsyncExecutionBlock.js"; import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js"; import type { FlowGraphContext } from "../../../flowGraphContext.js"; import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js"; import type { FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.js"; /** * Block that sets a delay in seconds before activating the output signal. */ export declare class FlowGraphSetDelayBlock extends FlowGraphAsyncExecutionBlock { /** * The maximum number of parallel delays that can be set per node. */ static MaxParallelDelayCount: number; /** * Input signal: If activated the delayed activations set by this block will be canceled. */ readonly cancel: FlowGraphSignalConnection; /** * Input connection: The duration of the delay in seconds. */ readonly duration: FlowGraphDataConnection<number>; /** * Output connection: The last delay index that was set. */ readonly lastDelayIndex: FlowGraphDataConnection<number>; constructor(config?: IFlowGraphBlockConfiguration); _preparePendingTasks(context: FlowGraphContext): void; _cancelPendingTasks(context: FlowGraphContext): void; _execute(context: FlowGraphContext, callingSignal: FlowGraphSignalConnection): void; getClassName(): string; private _onEnded; }