Interface IFlowGraphBlockParseOptions
interface IFlowGraphBlockParseOptions {
assetsContainer?: any;
pathConverter?: IPathToObjectConverter<IObjectAccessor<any, any, any>>;
scene: Scene;
valueParseFunction?: (
key: string,
serializationObject: any,
assetsContainer: IAssetContainer,
scene: Scene,
) => any;
}
assetsContainer?: any;
pathConverter?: IPathToObjectConverter<IObjectAccessor<any, any, any>>;
scene: Scene;
valueParseFunction?: (
key: string,
serializationObject: any,
assetsContainer: IAssetContainer,
scene: Scene,
) => any;
}
Properties
Optionalassets Container
assetsContainer?: any
The assets container to use when loading assets.
Optionalpath Converter
The path converter to use to convert the path to an object accessor.
scene
The scene that the block is being parsed in.
Optionalvalue Parse Function
valueParseFunction?: (
key: string,
serializationObject: any,
assetsContainer: IAssetContainer,
scene: Scene,
) => any
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
- key: string
- (
Options for parsing a block.