decode : Json.Decode.Decoder Tileset
encode : Tileset -> Json.Encode.Value
{ firstgid : Basics.Int
, source : String
}
firstgid
GID corresponding to the first tile in the setsource
url to EmbeddedTileData
{ columns : Basics.Int
, firstgid : Basics.Int
, image : String
, imageheight : Basics.Int
, imagewidth : Basics.Int
, margin : Basics.Int
, name : String
, spacing : Basics.Int
, tilecount : Basics.Int
, tileheight : Basics.Int
, tilewidth : Basics.Int
, transparentcolor : String
, tiles : Dict Basics.Int TilesData
, properties : Tiled.Properties.Properties
}
columns
The number of tile columns in the tilesetfirstgid
GID corresponding to the first tile in the setimage
Image used for tiles in this setimagewidth
Width of source image in pixelsimageheight
Height of source image in pixelsmargin
Buffer between image edge and first tile (pixels)name
Name given to this tilesetspacing
Spacing between adjacent tiles in image (pixels)tilecount
The number of tiles in this tilesettileheight
Maximum height of tiles in this settiles
Dict of TilesData TilesData
tilewidth
Maximum width of tiles in this setproperties
A list of properties (name, value, type).{ columns : Basics.Int
, firstgid : Basics.Int
, margin : Basics.Int
, name : String
, spacing : Basics.Int
, tilecount : Basics.Int
, tilewidth : Basics.Int
, tileheight : Basics.Int
, tiles : Dict Basics.Int ImageCollectionTileDataTile
, properties : Tiled.Properties.Properties
, grid : Maybe GridData
}
columns
The number of tile columns in the tilesetfirstgid
GID corresponding to the first tile in the setmargin
Buffer between image edge and first tile (pixels)name
Name given to this tilesetspacing
Spacing between adjacent tiles in image (pixels)tilecount
The number of tiles in this tilesettileheight
Maximum height of tiles in this settiles
Dict of ImageCollectionTileDataTile
tilewidth
Maximum width of tiles in this setproperties
A list of properties (name, value, type).TilesDataPlain {}
TilesDataPlain { image : String
, imageheight : Basics.Int
, imagewidth : Basics.Int
}
{ draworder : Tiled.Layer.DrawOrder
, name : String
, objects : List Tiled.Object.Object
, opacity : Basics.Int
, visible : Basics.Bool
, x : Basics.Int
, y : Basics.Int
}
{ duration : Basics.Int
, tileid : Basics.Int
}
decodeFile : Basics.Int -> Json.Decode.Decoder Tileset
{ height : Basics.Int
, orientation : String
, width : Basics.Int
}
decodeTilesData : Json.Decode.Decoder (Maybe (TilesDataPlain { id : Basics.Int }))
encodeTilesData : ( Basics.Int, TilesDataPlain a ) -> Json.Encode.Value