Class TCastleTiledMapData.TTileset

Unit

Declaration

type TTileset = class(TObject)

Description

Tileset definition.

Hierarchy

  • TObject
  • TCastleTiledMapData.TTileset

Enclosing Class

Overview

Fields

Public FirstGID: Cardinal;
Public Url: 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: TPropertyList;
Public Image: TImage;
Public Tiles: TTileList;
Public TerrainTypes: TTerrainTypes;
Public RendererData: TObject;

Methods

Public constructor Create;
Public destructor Destroy; override;

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

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: TPropertyList;

This item has no description.

Public Image: TImage;

This item has no description.

Public Tiles: TTileList;

This item has no description.

Public TerrainTypes: TTerrainTypes;

This item has no description.

Public RendererData: TObject;

Use to render the tileset. Not a part of the file format. In case of TCastleTiledMapControl, this is always TSprite.

Methods

Public constructor Create;

This item has no description.

Public destructor Destroy; override;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.