@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.
58 lines (57 loc) • 2.05 kB
TypeScript
import type { FlowGraphContext } from "../../../flowGraphContext.js";
import type { FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.js";
import { FlowGraphExecutionBlockWithOutSignal } from "../../../flowGraphExecutionBlockWithOutSignal.js";
import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
/**
* Configuration for the wait all block.
*/
export interface IFlowGraphWaitAllBlockConfiguration extends IFlowGraphBlockConfiguration {
/**
* The number of input signals. There will always be at least one input flow.
* glTF interactivity has a max of 64 input flows.
*/
inputSignalCount: number;
}
/**
* A block that waits for all input flows to be activated before activating its output flow.
*/
export declare class FlowGraphWaitAllBlock extends FlowGraphExecutionBlockWithOutSignal {
/**
* the configuration of the block
*/
config: IFlowGraphWaitAllBlockConfiguration;
/**
* Input connection: Resets the block.
*/
reset: FlowGraphSignalConnection;
/**
* Output connection:When the last missing flow is activated
*/
completed: FlowGraphSignalConnection;
/**
* Output connection: The number of remaining inputs to be activated.
*/
remainingInputs: FlowGraphDataConnection<number>;
/**
* An array of input signals
*/
readonly inFlows: FlowGraphSignalConnection[];
private _cachedActivationState;
constructor(
/**
* the configuration of the block
*/
config: IFlowGraphWaitAllBlockConfiguration);
private _getCurrentActivationState;
_execute(context: FlowGraphContext, callingSignal: FlowGraphSignalConnection): void;
/**
* @returns class name of the block.
*/
getClassName(): string;
/**
* Serializes this block into a object
* @param serializationObject the object to serialize to
*/
serialize(serializationObject?: any): void;
}