diff --git a/src/TiledMap.cs b/src/TiledMap.cs
index 52abd53..173dd24 100644
--- a/src/TiledMap.cs
+++ b/src/TiledMap.cs
@@ -688,40 +688,6 @@ public TiledTile GetTiledTile(TiledMapTileset mapTileset, TiledTileset tileset,
return null;
}
- ///
- /// This method can be used to figure out the x and y position on a Tileset image for rendering tiles.
- ///
- /// An element of the Tilesets array
- /// An instance of the TiledTileset class
- /// An element within a TiledLayer.data array
- /// An int array of length 2 containing the x and y position of the source rect of the tileset image. Multiply the values by the tile width and height in pixels to get the actual x and y position. Returns null if the gid was not found
- /// This method currently doesn't take margin into account
- [Obsolete("Please use GetSourceRect instead because with future versions of Tiled this method may no longer be sufficient")]
- public int[] GetSourceVector(TiledMapTileset mapTileset, TiledTileset tileset, int gid)
- {
- var tileHor = 0;
- var tileVert = 0;
-
- for (var i = 0; i < tileset.TileCount; i++)
- {
- if (i == gid - mapTileset.firstgid)
- {
- return new[] { tileHor, tileVert };
- }
-
- // Update x and y position
- tileHor++;
-
- if (tileHor == tileset.Image.width / tileset.TileWidth)
- {
- tileHor = 0;
- tileVert++;
- }
- }
-
- return null;
- }
-
///
/// This method can be used to figure out the source rect on a Tileset image for rendering tiles.
///
diff --git a/src/TiledModels.cs b/src/TiledModels.cs
index 41b3e12..e8bfac7 100644
--- a/src/TiledModels.cs
+++ b/src/TiledModels.cs
@@ -400,11 +400,34 @@ public class TiledGroup
///
public class TiledChunk
{
+ ///
+ /// The chunk's x position
+ ///
public int x;
+
+ ///
+ /// The chunk's y position
+ ///
public int y;
+
+ ///
+ /// The chunk's width
+ ///
public int width;
+
+ ///
+ /// The chunk's height
+ ///
public int height;
+
+ ///
+ /// The chunk's data is similar to the data array in the TiledLayer class
+ ///
public int[] data;
+
+ ///
+ /// The chunk's data rotation flags are similar to the data rotation flags array in the TiledLayer class
+ ///
public byte[] dataRotationFlags;
}
diff --git a/src/TiledTileset.cs b/src/TiledTileset.cs
index 8a48f54..218514a 100644
--- a/src/TiledTileset.cs
+++ b/src/TiledTileset.cs
@@ -57,6 +57,9 @@ public class TiledTileset
///
public TiledProperty[] Properties { get; set; }
+ ///
+ /// The tile offset in pixels
+ ///
public TiledOffset Offset { get; set; }
///
@@ -192,7 +195,7 @@ private TiledProperty[] ParseProperties(XmlNodeList nodeList)
property.type = node.Attributes["type"]?.Value;
property.value = node.Attributes["value"]?.Value;
- if (property.value == null && node.InnerText != null)
+ if (property.value == null)
{
property.value = node.InnerText;
}