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.

42 lines (41 loc) 1.41 kB
import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js"; import type { FlowGraphContext } from "../../../flowGraphContext.js"; import { FlowGraphExecutionBlock } from "../../../flowGraphExecutionBlock.js"; import type { FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.js"; /** * Configuration for the sequence block. */ export interface IFlowGraphSequenceBlockConfiguration extends IFlowGraphBlockConfiguration { /** * The number of output signals. Defaults to 1. */ outputSignalCount?: number; } /** * A block that executes its output flows in sequence. */ export declare class FlowGraphSequenceBlock extends FlowGraphExecutionBlock { /** * the configuration of the block */ config: IFlowGraphSequenceBlockConfiguration; /** * The output flows. */ executionSignals: FlowGraphSignalConnection[]; constructor( /** * the configuration of the block */ config: IFlowGraphSequenceBlockConfiguration); _execute(context: FlowGraphContext): void; /** * Sets the block's output flows. Would usually be passed from the constructor but can be changed afterwards. * @param outputSignalCount the number of output flows */ setNumberOfOutputSignals(outputSignalCount?: number): void; /** * @returns class name of the block. */ getClassName(): string; }