-
Notifications
You must be signed in to change notification settings - Fork 87
TiledSharp Data Hierarchy
marshallward edited this page Apr 23, 2012
·
15 revisions
This documentation is out of date, will update soon...
Listing of all TiledSharp fields inside a TmxMap object, along with a brief description.
- map.version : TMX version
- map.orientation : Map grid orientation
- map.width : Tile count of map width
- map.height : Tile count of map height
- map tileWidth : Pixel width of (smallest) tiles
- map.tileHeight : Pixel height of (smallest) tiles
-
map.tileset : List of tilesets
- map.tileset[ ].firstGid : Global tile ID of first tile in set
- map.tileset[ ].name : Tileset name
- map.tileset[ ].tileWidth : Pixel tile width
- map.tileset[ ].tileHeight : Pixel tile height
- map.tileset[ ].spacing : Pixel spacing between image tiles
- map.tileset[ ].margin : Pixel border thickness of image
-
map.tileset[ ].image : Image object
- map.tileset[ ].image.source : Image reference path
- map.tileset[ ].image.trans : Image transparency color
- map.tileset[ ].property : Tileset properties
- map.tileset[ ].tile : Individual tile properties
-
map.layer : List of map layers
- map.layer[ ].name : Layer name
- map.layer[ ].opacity : Layer alpha
- map.layer[ ].visible : Layer display
-
map.layer[ ].tiles : List of layer map tiles
- map.layer[ ].tiles.gid : global tile ID
- map.layer[ ].tiles.x : horizontal map index
- map.layer[ ].tiles.y : vertical map index
- map.layer[ ].hflip : Horizontal tile flip
- map.layer[ ].vflip : Vertical tile flip
- map.layer[ ].dflip : Diagonal flip
- map.layer[ ].property : Layer properties
-
map.objectgroup : List of object layers
- map.objectgroup[ ].name : ObjectGroup layer name
- map.objectgroup[ ].color : ObjectGroup colors
- map.objectgroup[ ].opacity : ObjectGroup alpha
- map.objectgroup[ ].visible : ObjectGroup layer display
-
map.objectgroup[ ].obj : List of ObjectGroup objects
- map.objectgroup[ ].obj[ ].name : Object name
- map.objectgroup[ ].obj[ ].objType : Tiled object type
- map.objectgroup[ ].obj[ ].type : User-defined object type
- map.objectgroup[ ].obj[ ].x :
- map.objectgroup[ ].obj[ ].y :
- map.objectgroup[ ].obj[ ].width : Pixel object width
- map.objectgroup[ ].obj[ ].height : Pixel object height
- map.objectgroup[ ].obj[ ].points : List of poly(gon|line) points
- map.objectgroup[ ].obj[ ].property : Object properties
- map.objectgroup[ ].property : ObjectGroup properties
- map.property : Map properties