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

    Class AssetManager

    Centralized manager for loading and caching assets (images, text, etc.). Provides global progress tracking and loading state.

    Index

    Constructors

    Accessors

    Methods

    • Parameters

      Returns Promise<ImageBitmap | HTMLImageElement>

    • Returns a promise that resolves when all currently active loading processes are finished.

      Returns Promise<void>

    • Sets a custom header to be sent with every asset request.

      Parameters

      • key: string

        The header name (e.g. "Authorization").

      • value: string

        The header value.

      Returns void