TiledSharp  0.9.1 r0
A .NET C# library for importing Tiled TMX tile maps
 All Classes Namespaces Files Functions Variables Enumerations Properties Pages
Public Member Functions | Properties | List of all members
TiledSharp.TmxTileset Class Reference

Tilesets for a TMX Map. More...

Inheritance diagram for TiledSharp.TmxTileset:
TiledSharp.TmxDocument TiledSharp.ITmxElement

Public Member Functions

 TmxTileset (XDocument xDoc, string tmxDir)
 Tileset constructor for external TSX file.
 
 TmxTileset (XElement xTileset, string tmxDir="")
 Tileset constructor for TMX source element.
 

Properties

int FirstGid [get, set]
 The global ID of the first tile in the tileset.
 
string Name [get, set]
 Name of the tileset.
 
int TileWidth [get, set]
 The (maximum) pixel width of the tiles.
 
int TileHeight [get, set]
 The (maximum) pixel height of the tiles.
 
int Spacing [get, set]
 The pixel spacing between tiles (excluding the margin)
 
int Margin [get, set]
 The pixel margin (or border) of the tileset.
 
TmxTileOffset TileOffset [get, set]
 Pixel offset when drawing a tile from a related tileset.
 
TmxImage Image [get, set]
 Tileset image source.
 
TmxList< TmxTerrainTerrains [get, set]
 Terrain generation definitions.
 
List< TmxTilesetTileTiles [get, set]
 Terrain generation tiles.
 
PropertyDict Properties [get, set]
 User-defined tileset properties.
 
- Properties inherited from TiledSharp.TmxDocument
string TmxDirectory [get, set]
 Parent directory of TMX file.
 
- Properties inherited from TiledSharp.ITmxElement
string Name [get]
 Layer or element name.
 

Additional Inherited Members

- Protected Member Functions inherited from TiledSharp.TmxDocument
XDocument ReadXml (string filepath)
 Parse XML content of TMX file.
 

Detailed Description

Tilesets for a TMX Map.

Definition at line 11 of file Tileset.cs.


The documentation for this class was generated from the following files: