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.

29 lines (28 loc) 1.15 kB
import type { FlowGraphContext } from "../../../flowGraphContext.js"; import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js"; import { FlowGraphExecutionBlock } from "../../../flowGraphExecutionBlock.js"; import type { FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.js"; import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js"; /** * A block that evaluates a condition and activates one of two branches. */ export declare class FlowGraphBranchBlock extends FlowGraphExecutionBlock { /** * Input connection: The condition to evaluate. */ readonly condition: FlowGraphDataConnection<boolean>; /** * Output connection: The branch to execute if the condition is true. */ readonly onTrue: FlowGraphSignalConnection; /** * Output connection: The branch to execute if the condition is false. */ readonly onFalse: FlowGraphSignalConnection; constructor(config?: IFlowGraphBlockConfiguration); _execute(context: FlowGraphContext): void; /** * @returns class name of the block. */ getClassName(): string; }