melonJS
    Preparing search index...

    Interface LDtkListedObject

    An entity the project's table of content lists: LDtk writes there every entity whose definition has "Add to table of content" checked, so that a game finds them (a player's start, the doors of a world) without reading the levels.

    interface LDtkListedObject {
        fields: Record<string, unknown>;
        height: number | undefined;
        identifier: string;
        iid: string;
        iids: LDtkEntityReference;
        level: LDtkLevelInfo | undefined;
        width: number | undefined;
        x: number | undefined;
        y: number | undefined;
    }
    Index
    fields: Record<string, unknown>

    the fields LDtk was told to list with it, by name

    height: number | undefined
    identifier: string

    the entity's identifier in LDtk

    iid: string

    the entity's unique id in LDtk

    the entity, and the layer, level and world it is in, by their unique ids

    level: LDtkLevelInfo | undefined

    the level it is in

    width: number | undefined

    its size, in pixels; undefined in a file saved before LDtk 1.5

    x: number | undefined

    where its pivot is in its world, in pixels: the coordinates a whole world is loaded in. Undefined in a file saved before LDtk 1.5, which lists the references alone

    y: number | undefined