Struct LayerData
A layer of tiles within the map.
A Map layer could be one of:
Tile Layer: data
is an array of guids that each map to some tile from a TilesetData
Object Group: objects
is a set of entities that are not necessarily tied to the grid
Image Layer: This layer is a static image (e.g. a backdrop)
Fields
Name | Type | Description |
---|---|---|
data
|
uint[] |
An array of tile GIDs. Only for tilelayer
|
drawOrder
|
string |
Not documented by tiled, but may appear in JSON. |
name
|
string |
Name assigned to this layer |
numCols
|
int |
Number of tile columns. Identical to map width in Tiled Qt. |
numRows
|
int |
Number of tile rows. Identical to map height in Tiled Qt. |
objects
|
ObjectData[] |
An array of objects . Only on objectgroup layers.
|
opacity
|
float |
Visual opacity of all tiles in this layer
|
properties
|
string[string] |
Optional key-value properties for this layer
|
type
|
LayerData. |
Category (tile, object, or image) |
visible
|
bool |
whether layer is shown or hidden in editor |
x
|
int |
Horizontal layer offset. Always 0 in Tiled Qt. |
y
|
int |
Vertical layer offset. Always 0 in Tiled Qt. |
Properties
Name | Type | Description |
---|---|---|
idxToCol
[set]
|
ulong |
get the column corresponding to a position in the data or objects array.
|
idxToRow
[set]
|
ulong |
get the row corresponding to a position in the data or objects array.
|
Enums
Name | Description |
---|---|
Type
|
Identifies what kind of information a layer contains. |
Authors
Copyright
Copyright © 2015, Ryan Roden-Corrent