the name the project was loaded under
the project file's content, the levels saved apart put back in
the name each image is kept under, by its path in the project
Readonlyentitythe entity definitions, by their uid
Readonlyenumsthe enums, by their identifier
Readonlyimagesthe name each image the project names is kept under by the loader, by its path in the project: the file's name, unless another file of that name was loaded already
Readonlyjsonthe project file's content
Readonlylayerthe layer definitions, by their uid
Readonlylevelsevery level of the project, in LDtk's order
Readonlynamethe name the project was loaded under
Readonlytilesetsthe tilesets, by their uid
Readonlyworldsthe project's worlds: one, unless the project was set up for several
An entity of the project, by its unique id: what an EntityRef field
points at (a teleport's destination, the door a lever opens), found
whether its level is loaded or not.
the entity's iid, or the value of an EntityRef field
the entity, its level and where it is, or undefined
a level of the project
the level's identifier in LDtk, or its iid
the level, or undefined if the project has none of that name
The entities the project's table of content lists: those whose definition has "Add to table of content" checked in LDtk. They are known without a level being loaded, which is what tells a game where to start in a world loaded a few levels at a time.
Optionalidentifier: string
the entities' identifier in LDtk; every listed entity by default
the entities, in LDtk's order
the text typed for a tile in LDtk's tileset view ("custom data")
the tileset's identifier in LDtk
the tile's id in the tileset
the text, or undefined for a tile with none
the values of a tileset's enum a tile is tagged with in LDtk
the tileset's identifier in LDtk
the tile's id in the tileset
the names of the enum values the tile carries
a world of the project
Optionalidentifier: string
the world's identifier in LDtk; the first world by default
the world, or undefined if the project has none of that name
An LDtk project, as loaded from a
.ldtkfile: its levels and worlds, and the definitions they are read with.loader.getLDtk(name)returns it.