Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IImagelayer

Hierarchy

Index

Properties

id

id: number

Incremental id - unique across all layers

image

image: string

Image used by this layer.

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)

Optional transparentcolor

transparentcolor: undefined | string

Hex-formatted color (#RRGGBB)

type

type: "imagelayer"

visible

visible: boolean

Whether layer is shown or hidden in editor

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