Skip to content

Commit

Permalink
Forgot to update the TiledTileset class to make the Parse method publ…
Browse files Browse the repository at this point in the history
…ic just like in the TiledMap class
  • Loading branch information
TheBoneJarmer committed Apr 21, 2021
1 parent d8813ac commit 15985f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/TiledCS.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<Authors>Ruben Labruyere</Authors>
<Company>Ruben Labruyere</Company>
<PackageId>TiledCS</PackageId>
Expand Down
9 changes: 7 additions & 2 deletions src/TiledTileset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,20 @@ public TiledTileset(string path)

if (path.EndsWith(".tsx"))
{
Parse(content);
ParseXml(content);
}
else
{
throw new TiledException("Unsupported file format");
}
}

private void Parse(string xml)
/// <summary>
/// Can be used to parse the content of a TSX tileset manually instead of loading it using the constructor
/// </summary>
/// <param name="xml">The tmx file content as string</param>
/// <exception cref="TiledException"></exception>
public void ParseXml(string xml)
{
try
{
Expand Down

0 comments on commit 15985f4

Please sign in to comment.