Skip to content

Commit

Permalink
Added level overlaps in __neighbours JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Sep 20, 2023
1 parent 95d7c3d commit b284708
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ldtk/Json.hx
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,11 @@ typedef LevelJson = {
var externalRelPath: Null<String>;

/**
An array listing all other levels touching this one on the world map.
An array listing all other levels touching this one on the world map. Since 1.3.5, this includes levels that overlap in the same world layer, or in nearby world layers.
Only relevant for world layouts where level spatial positioning is manual (ie. GridVania, Free). For Horizontal and Vertical layouts, this array is always empty.
**/
@added("0.6.0")
@changed("1.0.0")
@changed("1.3.5")
var __neighbours: Array<NeighbourLevel>;

/**
Expand Down Expand Up @@ -1454,7 +1454,11 @@ typedef NeighbourLevel = {
@deprecation("1.0.0", "1.2.0", "levelIid")
var ?levelUid: Int;

/** A single lowercase character tipping on the level location (`n`orth, `s`outh, `w`est, `e`ast). **/
/**
A single lowercase character tipping on the level location (`n`orth, `s`outh, `w`est, `e`ast).
Since 1.3.5, this character value can also be `<` (neighbour depth is lower), `>` (neighbour depth is greater) or `o` (levels overlap and share the same world depth).
**/
@changed("1.3.5")
var dir: String;
}

Expand Down

0 comments on commit b284708

Please sign in to comment.