Documentation

DataParserInterface

Interface for data parsers.

Tags
see
https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#data

Documentation

Table of Contents

getData()  : string
Get the data as raw string.
isResponsible()  : bool
returns true if this parser is responsible for this layerData object.
postCompress()  : array<string|int, array<string|int, array<string|int, mixed>>>
After the compression algorithm decompresses the data, postCompile it.

Methods

isResponsible()

returns true if this parser is responsible for this layerData object.

public isResponsible(LayerData $layerData) : bool
Parameters
$layerData : LayerData
Return values
bool

postCompress()

After the compression algorithm decompresses the data, postCompile it.

public postCompress(string $data[, int $width = null ][, int $height = null ]) : array<string|int, array<string|int, array<string|int, mixed>>>
Parameters
$data : string
$width : int = null
$height : int = null
Return values
array<string|int, array<string|int, array<string|int, mixed>>>

Search results