Small World Engine API Reference - v0.78.00
    Preparing search index...

    Interface StreamOptions

    Options for streaming binary asset data.

    interface StreamOptions {
        assetManager?: AssetManager;
        onChunk?: ChunkCallback;
        onProgress?: ProgressCallback;
    }
    Index
    assetManager?: AssetManager

    The AssetManager instance to stream/cache through. Defaults to a fresh, private instance (not the deprecated process-wide singleton) -- pass RendererContext.assetManager to share a cache/baseUrl/headers with the rest of an engine instance.

    onChunk?: ChunkCallback

    Optional callback triggered whenever a new binary chunk arrives.

    onProgress?: ProgressCallback

    Optional total progress callback.