Object TTileset

Unit

Declaration

type TTileset = object(TObject)

Description

Tileset definition.

Hierarchy

  • TObject
  • TTileset

Overview

Fields

Public FirstGID: Cardinal;
Public Source: string;
Public Name: string;
Public TileWidth: Cardinal;
Public TileHeight: Cardinal;
Public Spacing: Cardinal;
Public Margin: Cardinal;
Public TileCount: Cardinal;
Public Columns: Cardinal;
Public TileOffset: TVector2Integer;
Public Properties: TProperties;
Public Image: TImage;
Public Tiles: TTiles;
Public TerrainTypes: TTerrainTypes;
Public ImageData: TObject;

Methods

Public procedure Free;

Description

Fields

Public FirstGID: Cardinal;

The first global tile ID of this tileset (this global ID maps to the first tile in this tileset).

Public Source: 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.)

Public Name: string;

The name of this tileset.

Public TileWidth: Cardinal;

The (maximum) width of the tiles in this tileset.

Public TileHeight: Cardinal;

The (maximum) height of the tiles in this tileset.

Public Spacing: Cardinal;

The spacing in pixels between the tiles in this tileset (applies to the tileset image).

Public Margin: Cardinal;

The margin around the tiles in this tileset (applies to the tileset image).

Public TileCount: Cardinal;

The number of tiles in this tileset (since 0.13)

Public 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)

Public 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.

Public Properties: TProperties;
 
Public Image: TImage;
 
Public Tiles: TTiles;
 
Public TerrainTypes: TTerrainTypes;
 
Public ImageData: TObject;

Pointer to image of tileset. Used by renderer. Not a part of file format.

Methods

Public procedure Free;
 

Generated by PasDoc 0.15.0.