Codec.Tiled.Layer
data Layer Source #
Constructors
Fields
Array of chunks (optional). tilelayer only.
zlib, gzip, zstd or empty (default). tilelayer only.
zlib
gzip
zstd
Array of unsigned int (GIDs) or base64-encoded data. tilelayer only.
topdown (default) or index. objectgroup only.
topdown
index
csv (default) or base64. tilelayer only.
csv
base64
Row count. Same as map height for fixed-size maps.
Incremental ID - unique across all layers
Image used by this layer. imagelayer only.
Array of layers. group only.
Whether layer is locked in the editor (default: false). (since Tiled 1.8.2)
Name assigned to this layer
Array of objects. objectgroup only.
Horizontal layer offset in pixels (default: 0)
Vertical layer offset in pixels (default: 0)
Value between 0 and 1.
Horizontal parallax factor for this layer (default: 1).
Vertical parallax factor for this layer (default: 1).
Array of Properties
Whether the image drawn by this layer is repeated along the X axis. imagelayer only.
Whether the image drawn by this layer is repeated along the Y axis. imagelayer only.
X coordinate where layer content starts (for infinite maps)
Y coordinate where layer content starts (for infinite maps)
Hex-formatted tint color (AARRGGBB) that is multiplied with any graphics drawn by this layer or any child layers (optional).
Hex-formatted color (#RRGGBB) (optional). imagelayer only.
tilelayer, objectgroup, imagelayer or group
tilelayer
objectgroup
imagelayer
group
Whether layer is shown or hidden in editor
Column count. Same as map width for fixed-size maps.
Horizontal layer offset in tiles. Always 0.
Vertical layer offset in tiles. Always 0.
Defined in Codec.Tiled.Layer
Methods
(==) :: Layer -> Layer -> Bool #
(/=) :: Layer -> Layer -> Bool #
showsPrec :: Int -> Layer -> ShowS #
show :: Layer -> String #
showList :: [Layer] -> ShowS #
Associated Types
type Rep Layer :: Type -> Type #
from :: Layer -> Rep Layer x #
to :: Rep Layer x -> Layer #
toJSON :: Layer -> Value #
toEncoding :: Layer -> Encoding #
toJSONList :: [Layer] -> Value #
toEncodingList :: [Layer] -> Encoding #
parseJSON :: Value -> Parser Layer #
parseJSONList :: Value -> Parser [Layer] #