Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tilesets

Container for the tilesets of the two allhtds files.

Hierarchy

  • Tilesets

Index

Methods

getNumTilesets

  • getNumTilesets(): number
  • Returns the number of tilesets.

    Returns number

    The number of tilesets.

getTileset

  • getTileset(index: number): Tileset
  • Returns the tileset with the given index.

    Parameters

    • index: number

      The tileset index.

    Returns Tileset

    The tileset.

getTilesets

Static fromArray

  • fromArray(array: Uint8Array): Tilesets

Static fromArrays

  • fromArrays(array1: Uint8Array, array2: Uint8Array): Tilesets
  • Reads tilesets from the two given arrays.

    Parameters

    • array1: Uint8Array

      The array with the ALLHTDS1 file content.

    • array2: Uint8Array

      The array with the ALLHTDS2 file content.

    Returns Tilesets

    The read tilesets.

Static fromBlob

  • fromBlob(blob: Blob): Promise<Tilesets>
  • Reads tilesets from the given blob.

    Parameters

    • blob: Blob

      The ALLHTDS1 or ALLHTDS2 blob to read.

    Returns Promise<Tilesets>

    The read tilesets.

Static fromBlobs

  • fromBlobs(blob1: Blob, blob2: Blob): Promise<Tilesets>
  • Reads tilesets from the two given blobs.

    Parameters

    • blob1: Blob

      The ALLHTDS1 blob to read.

    • blob2: Blob

      The ALLHTDS2 blob to read

    Returns Promise<Tilesets>

    The read tilesets.

Generated using TypeDoc