@kayahr/wastelib
    Preparing search index...

    Class WebAssets

    Web-based factory for all the Wasteland assets.

    Index

    Methods

    • Reads the mouse cursors from the CURS file and returns them.

      Returns Promise<Cursors>

      The mouse cursors.

    • Reads the end animation from the END.CPA file and returns them.

      Returns Promise<Ending>

      The end animation.

    • Reads the color font from the COLORF.FNT file and returns it.

      Returns Promise<Font>

      The font.

    • Reads the sprites from the IC0_9.WLF and MASKS.WLF files and returns them.

      Returns Promise<Sprites>

      The sprites.

    • Reads the tilesets from the ALLHTDS1 and ALLHTDS2 files and returns them.

      Returns Promise<Tilesets>

      The tilesets.

    • Reads the title image from the TITLE.PIC file and returns it.

      Returns Promise<Title>

      The title image.

    • Creates the web assets factory.

      Parameters

      • installFiles: (filenames: WastelandFilename[]) => Promise<File[]>

        Callback called when not all files are found in the browser. The callback must do some UI work to let the user select the missing files (filenames of the missing files are passed to the callback) and then the list of selected files must be returned asynchronously. None-Wasteland files in the returned list are ignored. The callback is called again if files are still missing.

      Returns Promise<WebAssets>

      The created web assets factory.