Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TilesetFormat

An object that can read or write tileset files.

Implementations of this interface are returned from tiled.tilesetFormat and tiled.tilesetFormatForFile.

since

1.4

Hierarchy

Index

Properties

Readonly canRead

canRead: boolean

Whether this format supports reading files.

Readonly canWrite

canWrite: boolean

Whether this format supports writing files.

Readonly nameFilter

nameFilter: string

The file name filter used by this format (used in file dialogs).

since

1.11.1

Methods

read

  • Reads the given file as a tileset.

    This function will throw an error if reading is not supported.

supportsFile

  • supportsFile(fileName: string): boolean

write

  • write(tileset: Tileset, fileName: string): string
  • Writes the given tileset to a file.

    This function will throw an error if writing is not supported.

    If there is an error writing the file, it will return a description of the error; otherwise, it will return "".

Generated using TypeDoc