Skip to content

Commit 8a197b6

Browse files
committed
Read ObjectLayer Objects .type property for Tiles
Why isn't the .type already read from the objects details as it's there? Latest release version of Tiled 0.11.0 has this field for Objects and it's quite extensively used by other frameworks. Well, I need this and I suppose there are other people too who might be interested in having this in here too. Currently I go around this by creating a custom property of "type" and setting my value on it but that's just extremely silly.
1 parent c42954a commit 8a197b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tilemap/TilemapParser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ Phaser.TilemapParser = {
448448

449449
gid: json.layers[i].objects[v].gid,
450450
name: json.layers[i].objects[v].name,
451+
type: json.layers[i].objects[v].type,
451452
x: json.layers[i].objects[v].x,
452453
y: json.layers[i].objects[v].y,
453454
visible: json.layers[i].objects[v].visible,

0 commit comments

Comments
 (0)