Parses a Tiled JSON object into a new MapData object.
name | type | description |
---|---|---|
name | string |
The name of the tilemap, used to set the name on the MapData. |
source | object |
The original Tiled JSON object. This is deep copied by this function. |
insertNull | boolean |
Controls how empty tiles, tiles with an index of -1, in the map
data are handled. If |
The created MapData object, or null
if the data can't be parsed.