Skip to content
18 changes: 18 additions & 0 deletions src/ldtk/Json.hx
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ typedef EntityInstanceJson = {
@changed("0.4.0")
var px: Array<Int>;

/** Two-bit integer. First bit determines whether or not this EntityInstance is flipped horizontally, the second bit vertically. **/
@added("1.2.6")
var f: Int;

/** An array of all custom fields and their values. **/
var fieldInstances: Array<FieldInstanceJson>;
}
Expand Down Expand Up @@ -988,6 +992,20 @@ typedef EntityDefJson = {
@internal
var resizableY: Bool;

/** If TRUE, the entity instances will be flippable horizontally **/
@added("1.2.6")
@internal
var flippableX: Bool;

/** If TRUE, the entity instances will be flippable vertically **/
@added("1.2.6")
@internal
var flippableY: Bool;

/** Defines whether entities flip within bounds (FALSE) or around their pivot point (TRUE). **/
@added("1.2.6")
var flipAroundPivot: Bool;

/** Only applies to entities resizable on both X/Y. If TRUE, the entity instance width/height will keep the same aspect ratio as the definition. **/
@added("0.8.0")
@internal
Expand Down