Class TCastleTiledMapData.TLayer
Unit
Declaration
type TLayer = class(TObject)
Description
This item has no description.
Hierarchy
- TObject
- TCastleTiledMapData.TLayer
Enclosing Class
Overview
Fields
Id: Cardinal; |
|
Name: String; |
|
Class: String; |
|
Opacity: Single; |
|
Locked: Boolean; |
|
OffsetX: Single; |
|
OffsetY: Single; |
|
Properties: TPropertyList; |
|
Data: TData; |
|
Color: TCastleColorRGB; |
|
Width: Integer; |
|
Height: Integer; |
|
SwitchNode: TSwitchNode; |
Methods
constructor Create; |
|
destructor Destroy; override; |
|
function Offset: TVector2; |
Properties
property Exists: Boolean read FVisible write SetExists; |
|
property Visible: Boolean read FVisible; |
Description
Fields
Id: Cardinal; |
|
Unique |
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; |
|
This item has no description. |
Data: TData; |
|
This item has no description. |
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; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function Offset: TVector2; |
|
Properties
property Exists: Boolean read FVisible write SetExists; |
|
Hides or shows the layer. Not a part of the file format. TODO: This property should move to a different class, TCastleTiledMap.TLayer. See https://castle-engine.io/roadmap#tiled_layers |
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-snapshot.