Interface ObjectGroup

Object group.

interface ObjectGroup {
    class?: string;
    draworder: DrawOrder;
    id: number;
    locked?: boolean;
    name: string;
    objects: MapObject[];
    offsetx?: number;
    offsety?: number;
    opacity: number;
    parallaxx?: number;
    parallaxy?: number;
    properties?: AnyProperty[];
    tintcolor?: string;
    type: "objectgroup";
    visible: boolean;
    x: number;
    y: number;
}

Hierarchy (view full)

  • Layer<"objectgroup">
    • ObjectGroup

Properties

class?: string

The class of the layer.

draworder: DrawOrder

The object group draw order

id: number

Incremental ID. Unique across all layers.

locked?: boolean

Whether layer is locked in the editor. Default is false.

name: string

The layer's name.

objects: MapObject[]

Array of map objects.

offsetx?: number

Optional horizontal layer offset in pixels. Default is 0.

offsety?: number

Optional vertical layer offset in pixels. Default is 0.

opacity: number

Layer opacity between 0 and 1.

parallaxx?: number

Horizontal parallax factor. Default is 1.

parallaxy?: number

Vertical parallax factor. Default is 1.

properties?: AnyProperty[]

Array of properties. Empty if not set.

tintcolor?: string

Optional tint color that is multiplied with any graphics drawn by this layer or any child layer.

type: "objectgroup"

The layer type.

visible: boolean

Whether layer is shown or hidden in editor.

x: number

Horizontal layer offset in tiles. Always 0.

y: number

Vertical layer offset in tiles. Always 0.

Generated using TypeDoc