LDtkLevelDefinition
@Serializable
This section contains all the level data. It can be found in 2 distinct forms, depending on Project current settings: - If "Separate level files" is disabled (default): full level data is embedded inside the main Project JSON file, - If "Separate level files" is enabled: level data is stored in separate standalone .ldtkl
files (one per level). In this case, the main Project JSON file will still contain most level data, except heavy sections, like the layerInstances
array (which will be null). The externalRelPath
string points to the ldtkl
file. A ldtkl
file is just a JSON file containing exactly what is described below.
Constructors
Link copied to clipboard
fun LDtkLevelDefinition(bgColor: String, bgPos: LDtkLevelBackgroundPositionData? = null, neighbours: List<LDtkNeighbourLevelData>?, levelBgColor: String? = null, bgPivotX: Float, bgPivotY: Float, levelBgPos: LDtkBgPos? = null, bgRelPath: String? = null, externalRelPath: String? = null, fieldInstances: List<LDtkFieldInstance>, identifier: String, layerInstances: List<LDtkLayerInstance>? = null, pxHei: Int, pxWid: Int, uid: Int, worldX: Int, worldY: Int, iid: String = "", worldDepth: Int = 0)