Definitions
@Serializable
A structure containing all the definitions of this project
If you're writing your own LDtk importer, you should probably just ignore most stuff in the defs section, as it contains data that are mostly important to the editor. To keep you away from the defs section and avoid some unnecessary JSON parsing, important data from definitions is often duplicated in fields prefixed with a double underscore (eg. __identifier or __type). The 2 only definition types you might need here are Tilesets and Enums.
Constructors
Link copied to clipboard
fun Definitions(entities: List<LDtkEntityDefinition>, enums: List<LDtkEnumDefinition>, externalEnums: List<LDtkEnumDefinition>, layers: List<LDtkLayerDefinition>, levelFields: List<LDtkFieldDefinition>, tilesets: List<LDtkTilesetDefinition>)