melonJS
    Preparing search index...

    Interface LDtkFieldInstance

    the value of a custom field of a level or an entity

    interface LDtkFieldInstance {
        __identifier: string;
        __tile?: LDtkTileRect | null;
        __type: string;
        __value: unknown;
        defUid?: number;
    }
    Index
    __identifier: string
    __tile?: LDtkTileRect | null

    the tile LDtk shows the field with: its own, or the one of its enum value

    __type: string

    Int, Float, Bool, String, Multilines, Color, FilePath, Point, EntityRef, Tile, LocalEnum.Name, ExternEnum.Name, Array<...>...

    __value: unknown

    a number, a boolean or a string for the simple types (a color is "#rrggbb", an enum the name of its value), an LDtkGridPoint for a Point, an LDtkEntityReference for an EntityRef, an LDtkTileRect for a Tile, an array of those for an Array<...>, and null where nothing was set

    defUid?: number