Skip to content

Should TilesetTile.Class property fall back to reading type attribute for backwards compatibility? #98

@kolin98

Description

@kolin98

Design Question / Feature Request

The TilesetTile object has both a deprecated Type property and its replacement Class property (introduced to match Tiled 1.9's naming change from "type" to "class").

Current Behavior

  • Older Tiled format files use the type attribute
  • Newer Tiled format files (1.9+) use the class attribute
  • TilesetTile.Type reads the type attribute (works with older files)
  • TilesetTile.Class reads the class attribute (works with newer files)
  • When loading older format files, Class returns empty because it only looks for the class attribute

Question

Should the Class property implement backwards compatibility by falling back to read the type attribute when class is not available?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions