Class TCastleTiledMapData.TTileset

Unit

Declaration

type TTileset = class(TObject)

Description

Tileset definition.

Source: src/scene/castletiledmap_data.inc (line 264).

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

Source: src/scene/castletiledmap_data.inc (line 278).

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

Source: src/scene/castletiledmap_data.inc (line 284).

Public Name: String;

The name of this tileset.

Source: src/scene/castletiledmap_data.inc (line 286).

Public TileWidth: Cardinal;

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

Source: src/scene/castletiledmap_data.inc (line 288).

Public TileHeight: Cardinal;

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

Source: src/scene/castletiledmap_data.inc (line 290).

Public Spacing: Cardinal;

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

Source: src/scene/castletiledmap_data.inc (line 293).

Public Margin: Cardinal;

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

Source: src/scene/castletiledmap_data.inc (line 295).

Public TileCount: Cardinal;

The number of tiles in this tileset (since 0.13)

Source: src/scene/castletiledmap_data.inc (line 297).

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)

Source: src/scene/castletiledmap_data.inc (line 300).

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.

Source: src/scene/castletiledmap_data.inc (line 303).

Public Properties: TPropertyList;

This item has no description.

Source: src/scene/castletiledmap_data.inc (line 304).

Public Image: TImage;

This item has no description.

Source: src/scene/castletiledmap_data.inc (line 305).

Public Tiles: TTileList;

This item has no description.

Source: src/scene/castletiledmap_data.inc (line 306).

Public TerrainTypes: TTerrainTypes;

This item has no description.

Source: src/scene/castletiledmap_data.inc (line 307).

Public RendererData: TObject;

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

Source: src/scene/castletiledmap_data.inc (line 310).

Methods

Public constructor Create;

This item has no description.

Source: src/scene/castletiledmap_data.inc (line 311).

Public destructor Destroy; override;

This item has no description.

Source: src/scene/castletiledmap_data.inc (line 312).


Generated by PasDoc 0.17.0.snapshot.