Table of Contents

Class Data

Namespace
DotTiled
Assembly
DotTiled.dll

Represents the data of a tile layer.

public class Data
Inheritance
Data
Inherited Members

Properties

Chunks

If the map is infinite, it will instead contain a list of chunks.

public Optional<Chunk[]> Chunks { get; set; }

Property Value

Optional<Chunk[]>

Compression

The compression method used to compress the tile layer data.

public Optional<DataCompression> Compression { get; set; }

Property Value

Optional<DataCompression>

Encoding

The encoding used to encode the tile layer data.

public Optional<DataEncoding> Encoding { get; set; }

Property Value

Optional<DataEncoding>

FlippingFlags

The parsed flipping flags for each tile in the layer. Appear in the same order as the tiles in the layer in GlobalTileIDs.

public Optional<FlippingFlags[]> FlippingFlags { get; set; }

Property Value

Optional<FlippingFlags[]>

GlobalTileIDs

The parsed tile layer data, as a list of tile GIDs. To get an actual tile ID, you map it to a local tile ID using the correct tileset. Please refer to the documentation on how to do this.

public Optional<uint[]> GlobalTileIDs { get; set; }

Property Value

Optional<uint[]>