Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ScriptedTilesetFormat

The interface that should be implemented for objects passed to tiled.registerTilesetFormat.

Hierarchy

  • ScriptedTilesetFormat

Index

Properties

Methods

Properties

Readonly extension

extension: string

The file extension used by the format.

Readonly name

name: string

Name of the format as shown in the file dialog.

Methods

Optional read

  • A function that reads a tileset from the given file.

    Can use TextFile or BinaryFile to read the file.

Optional write

  • write(tileset: Tileset, fileName: string): undefined | string
  • A function that writes a tileset to the given file.

    Can use TextFile or BinaryFile to write the file. When a non-empty string is returned, it is shown as error message.

Generated using TypeDoc