Table of Contents

Class TilesetReader

Namespace
DotTiled.Serialization
Assembly
DotTiled.dll

Reads a tileset from a string, regardless of format.

public class TilesetReader : ITilesetReader, IDisposable
Inheritance
TilesetReader
Implements
Inherited Members

Constructors

TilesetReader(string, Func<string, Tileset>, Func<string, Template>, Func<string, ICustomTypeDefinition>)

Constructs a new TilesetReader, capable of reading a tileset from a string, regardless of format.

public TilesetReader(string tileset, Func<string, Tileset> externalTilesetResolver, Func<string, Template> externalTemplateResolver, Func<string, ICustomTypeDefinition> customTypeResolver)

Parameters

tileset string

The string containing the tileset data.

externalTilesetResolver Func<string, Tileset>

A function that resolves external tilesets given their source.

externalTemplateResolver Func<string, Template>

A function that resolves external templates given their source.

customTypeResolver Func<string, ICustomTypeDefinition>

A function that resolves custom types given their source.

Exceptions

ArgumentNullException

Thrown when any of the arguments are null.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

ReadTileset()

Reads a tileset from the source.

public Tileset ReadTileset()

Returns

Tileset

The parsed tileset.