Class TCastleTiledMapData.TLayer
Unit
CastleTiledMap
Declaration
type TLayer = class(TObject)
Description
Hierarchy
- TObject
- TCastleTiledMapData.TLayer
Enclosing Class
Overview
Fields
Methods
Properties
 |
property Exists: Boolean read FVisible write SetExists; |
 |
property Visible: Boolean read FVisible; |
Description
Fields
 |
Id: Cardinal; |
Unique ID of the layer. Defaults to 0.
|
 |
Name: String; |
The name of the layer.
|
 |
Class: String; |
The class of the layer (since 1.9, defaults to '').
|
 |
Opacity: Single; |
The opacity of the layer as a value from 0 to 1. Defaults to 1.
|
 |
Locked: Boolean; |
Whether the layer is locked or unlocked. Defaults to false.
|
 |
OffsetX: Single; |
Rendering offset for this layer in pixels. Defaults to 0. (since 0.14).
|
 |
OffsetY: Single; |
Rendering offset for this layer in pixels. Defaults to 0. (since 0.14).
|
 |
Properties: TPropertyList; |
|
 |
Data: TData; |
|
 |
Color: TCastleColorRGB; |
The color used to display the objects in this group.
|
 |
Width: Integer; |
The width of the object group in tiles. Meaningless.
|
 |
Height: Integer; |
The height of the object group in tiles. Meaningless.
|
 |
SwitchNode: TSwitchNode; |
Used by the Exists-property to show/hide the layer. Not a part of the file format.
TODO: Maybe rename this to RenderData, consistent with other such data in this file. Possibly do this at new Tiled layers API work: https://castle-engine.io/roadmap#tiled_layers .
|
Methods
 |
constructor Create; |
|
 |
destructor Destroy; override; |
|
Properties
 |
property Visible: Boolean read FVisible; |
Whether the layer is shown or hidden. Defaults to true. Use the Exists-property to change the visibility during runtime.
|
Generated by PasDoc 0.16.0.