Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IObjectgroup

Hierarchy

Index

Properties

draworder

draworder: "topdown" | "index"

Whether the objects are drawn according to the order of appearance (index) or sorted by their y-coordinate (topdown). Defaults to topdown.

id

id: number

Incremental id - unique across all layers

name

name: string

Name assigned to this layer

objects

objects: IObject[]

Array of Objects. objectgroup only.

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: "objectgroup"

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