Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TileLayerEdit

This object enables modifying the tiles on a tile layer. Tile layers can't be modified directly for reasons of efficiency. The apply function needs to be called when you're done making changes.

An instance of this object is created by calling TileLayer.edit.

Hierarchy

  • TileLayerEdit

Index

Properties

Methods

Properties

mergeable

mergeable: boolean

Whether applied edits are mergeable with previous edits. Starts out as false and is automatically set to true by apply.

Readonly target

target: TileLayer

The target layer of this edit object.

Methods

apply

  • apply(): void
  • Applies all changes made through this object. This object can be reused to make further changes.

setTile

  • setTile(x: number, y: number, tile: Tile, flags?: number): void
  • Sets the tile at the given location, optionally specifying tile flags.

Generated using TypeDoc