Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITilelayer

Hierarchy

Index

Properties

Optional chunks

chunks: ITilelayerChunk[]

Array of chunks (optional).

Optional compression

compression: "zlib" | "gzip" | "zstd"

zlib, gzip or empty (default).

data

data: number[] | string

Array of unsigned int (GIDs) or base64-encoded data.

Optional encoding

encoding: "csv" | "base64"

csv (default) or base64.

height

height: number

Row count. Same as map height for fixed-size maps. (int)

id

id: number

Incremental id - unique across all layers

name

name: string

Name assigned to this layer

Optional offsetx

offsetx: undefined | number

Horizontal layer offset in pixels. (double)

Optional offsety

offsety: undefined | number

Vertical layer offset in pixels. (double)

opacity

opacity: number

Value between 0 and 1 (double)

properties

properties: IProperty[]

A list of properties (name, value, type).

Optional startx

startx: undefined | number

X coordinate where layer content starts (for infinite maps) (int)

starty

starty: number

Y coordinate where layer content starts (for infinite maps) (int)

type

type: "tilelayer"

visible

visible: boolean

Whether layer is shown or hidden in editor

width

width: number

Column count. Same as map width for fixed-size maps. (int)

x

x: 0

Horizontal layer offset in tiles. Always 0. (int)

y

y: 0

Vertical layer offset in tiles. Always 0. (int)

Generated using TypeDoc