TheBoneJarmer / TiledCS

TiledCS is a dotnet library for loading Tiled tilesets and maps
MIT License
139 stars 51 forks source link

99: add class element to tiledtile #100

Closed timjen3 closed 1 year ago

timjen3 commented 1 year ago

Added support for the class property to TiledTile. A TiledTile represents a tile in a tilemap. Long term it could make sense to take either of these alternative approaches:

I took the approach of adding a redundant "class" property since this is consistent with how the library handles the class/type data in TiledMaps: https://github.com/TheBoneJarmer/TiledCS/blob/main/src/TiledMap.cs#L526

And since this is technically just an xml prop, it doesn't break anything to simply support both.

This closes #99