API

Interface IFlowGraphBlockParseOptions

Options for parsing a block.

interface IFlowGraphBlockParseOptions {
    assetsContainer?: any;
    pathConverter?: IPathToObjectConverter<IObjectAccessor<any, any, any>>;
    scene: Scene;
    valueParseFunction?: (
        key: string,
        serializationObject: any,
        assetsContainer: IAssetContainer,
        scene: Scene,
    ) => any;
}
Index
assetsContainer?: any

The assets container to use when loading assets.

pathConverter?: IPathToObjectConverter<IObjectAccessor<any, any, any>>

The path converter to use to convert the path to an object accessor.

scene: Scene

The scene that the block is being parsed in.

valueParseFunction?: (
    key: string,
    serializationObject: any,
    assetsContainer: IAssetContainer,
    scene: Scene,
) => any

A function that parses a value from a serialization object.

Type Declaration

    • (
          key: string,
          serializationObject: any,
          assetsContainer: IAssetContainer,
          scene: Scene,
      ): any
    • Parameters

      • key: string

        the key of the property

      • serializationObject: any

        the serialization object where the property is located

      • assetsContainer: IAssetContainer

        the assets container

      • scene: Scene

        the scene that the block is being parsed in

      Returns any

      the parsed value