Class TCastleTiledMapData.TLayer

Unit

Declaration

type TLayer = class(TObject)

Description

This item has no description.

Hierarchy

  • TObject
  • TCastleTiledMapData.TLayer

Enclosing Class

Overview

Fields

Public Id: Cardinal;
Public Name: String;
Public Class: String;
Public Opacity: Single;
Public Locked: Boolean;
Public OffsetX: Single;
Public OffsetY: Single;
Public Properties: TPropertyList;
Public Data: TData;
Public Color: TCastleColorRGB;
Public Width: Integer;
Public Height: Integer;
Public SwitchNode: TSwitchNode;

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function Offset: TVector2;

Properties

Public property Exists: Boolean read FVisible write SetExists;
Public property Visible: Boolean read FVisible;

Description

Fields

Public Id: Cardinal;

Unique ID of the layer. Defaults to 0.

Public Name: String;

The name of the layer.

Public Class: String;

The class of the layer (since 1.9, defaults to '').

Public Opacity: Single;

The opacity of the layer as a value from 0 to 1. Defaults to 1.

Public Locked: Boolean;

Whether the layer is locked or unlocked. Defaults to false.

Public OffsetX: Single;

Rendering offset for this layer in pixels. Defaults to 0. (since 0.14).

Public OffsetY: Single;

Rendering offset for this layer in pixels. Defaults to 0. (since 0.14).

Public Properties: TPropertyList;

This item has no description.

Public Data: TData;

This item has no description.

Public Color: TCastleColorRGB;

The color used to display the objects in this group.

Public Width: Integer;

The width of the object group in tiles. Meaningless.

Public Height: Integer;

The height of the object group in tiles. Meaningless.

Public 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

Public constructor Create;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function Offset: TVector2;

OffsetX and OffsetY packed in a vector.

Properties

Public 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

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