Skip to content

Commit

Permalink
Added IntGrid value groups
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Sep 15, 2023
1 parent 51f8c2f commit 1beaf67
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/ldtk/Json.hx
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,11 @@ typedef LayerDefJson = {
@only("IntGrid layer")
var intGridValues: Array<IntGridValueDef>;

/** Group informations for IntGrid values **/
@changed("1.3.5")
@only("IntGrid layer")
var intGridValuesGroups: Array<IntGridValueGroupDef>;

/**
Reference to the Tileset UID being used by this auto-layer rules. WARNING: some layer *instances* might use a different tileset. So most of the time, you should probably use the `__tilesetDefUid` value from layer instances.
**/
Expand Down Expand Up @@ -1499,9 +1504,22 @@ typedef IntGridValueDef = {

/** Parent group identifier (0 if none)**/
@added("1.3.5")
var groupId: Int;
var groupUid: Int;
}


/** IntGrid value group definition **/
@inline
@display("IntGrid value group definition")
typedef IntGridValueGroupDef = {
/** Group unique ID **/
var uid: Int;

/** User defined string identifier **/
var identifier: Null<String>;
}


/** In a tileset definition, enum based tag infos **/
@inline
@added("1.0.0")
Expand Down

0 comments on commit 1beaf67

Please sign in to comment.