Tiled editor now uses "class" instead of "type"
DigiEggz opened this issue · 1 comments
DigiEggz commented
Tiled 1.9 changed the name of the "type" property to "class". This causes a problem for the type
variable within TiledObject
.
The type
variable is set using the XML attribute source.att.type
, but to retrieve the class node you'd need to get source.att.class
, which throws "Unexpected class" because the name "class" is reserved. Tiled allows for a compatibility setting to be toggled to force the name of the variable stay as "type", but new users unaware of this will have problems with the latest Tiled.
Is there an easy way around this?
Geokureli commented
gonna be a bit before I can get to this, but I will