marshallward / TiledSharp

C# library for parsing and importing TMX and TSX files generated by Tiled, a tile map generation tool
http://marshallward.github.io/TiledSharp
Apache License 2.0
328 stars 87 forks source link

TmxImageLayer now handles width and height attributes not being present. #21

Closed ShawnCowles closed 8 years ago

ShawnCowles commented 8 years ago

A map I'm working on has an image layer without height or width attributes. The map was created using the latest version of Tiled (0.15). The map would fail to load through TiledSharp without those attributes.

This change makes height and width nullable, to handle image layers without them.

marshallward commented 8 years ago

Looks very straightforward, thanks very much for the contribution!