Class TTiledMap.TTileset
Unit
CastleTiledMap
Declaration
type TTileset = class(TObject)
Description
Tileset definition.
Hierarchy
- TObject
- TTiledMap.TTileset
Enclosing Class
Overview
Fields
Methods
Description
Fields
|
FirstGID: Cardinal; |
The first global tile ID of this tileset (this global ID maps to the first tile in this tileset).
|
|
URL: string; |
If this tileset is stored in an external TSX (Tile Set XML) file, this attribute refers to that file. That TSX file has the same structure as the <tileset> element described here. (There is the firstgid attribute missing and this source attribute is also not there. These two attributes are kept in the TMX map, since they are map specific.)
|
|
Name: string; |
The name of this tileset.
|
|
TileWidth: Cardinal; |
The (maximum) width of the tiles in this tileset.
|
|
TileHeight: Cardinal; |
The (maximum) height of the tiles in this tileset.
|
|
Spacing: Cardinal; |
The spacing in pixels between the tiles in this tileset (applies to the tileset image).
|
|
Margin: Cardinal; |
The margin around the tiles in this tileset (applies to the tileset image).
|
|
TileCount: Cardinal; |
The number of tiles in this tileset (since 0.13)
|
|
Columns: Cardinal; |
The number of tile columns in the tileset. For image collection tilesets it is editable and is used when displaying the tileset. (since 0.15)
|
|
TileOffset: TVector2Integer; |
This element is used to specify an offset in pixels, to be applied when drawing a tile from the related tileset. When not present, no offset is applied.
|
|
Properties: TPropertyList; |
|
|
Image: TImage; |
|
|
Tiles: TTileList; |
|
|
TerrainTypes: TTerrainTypes; |
|
Methods
|
constructor Create; |
|
|
destructor Destroy; override; |
|
Generated by PasDoc 0.16.0.