Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq Color Source # | |
Ord Color Source # | |
Read Color Source # | |
Show Color Source # | |
Generic Color Source # | |
FromJSON Color Source # | |
type Rep Color Source # | |
Defined in LDtk.Types type Rep Color = D1 ('MetaData "Color" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "Color" 'PrefixI 'True) (S1 ('MetaSel ('Just "c_r") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8) :*: (S1 ('MetaSel ('Just "c_g") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8) :*: S1 ('MetaSel ('Just "c_b") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8)))) |
EntityDef | |
|
Instances
data EmbedAtlas Source #
Instances
data CustomData Source #
Instances
EnumTag | |
|
Instances
Eq EnumTag Source # | |
Ord EnumTag Source # | |
Read EnumTag Source # | |
Show EnumTag Source # | |
Generic EnumTag Source # | |
FromJSON EnumTag Source # | |
type Rep EnumTag Source # | |
Defined in LDtk.Types type Rep EnumTag = D1 ('MetaData "EnumTag" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "EnumTag" 'PrefixI 'True) (S1 ('MetaSel ('Just "enumValueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "tileIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]))) |
data TilesetDef Source #
TilesetDef | |
|
Instances
data Definitions Source #
Definitions | |
|
Instances
data EnumValueDef Source #
Instances
EnumDef | |
|
Instances
Eq EnumDef Source # | |
Ord EnumDef Source # | |
Read EnumDef Source # | |
Show EnumDef Source # | |
Generic EnumDef Source # | |
FromJSON EnumDef Source # | |
type Rep EnumDef Source # | |
Defined in LDtk.Types type Rep EnumDef = D1 ('MetaData "EnumDef" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "EnumDef" 'PrefixI 'True) ((S1 ('MetaSel ('Just "externalRelPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe FilePath)) :*: (S1 ('MetaSel ('Just "iconTilesetUid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "identifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "uid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [EnumValueDef]))))) |
Instances
Eq GridValue Source # | |
Ord GridValue Source # | |
Defined in LDtk.Types | |
Read GridValue Source # | |
Show GridValue Source # | |
Generic GridValue Source # | |
FromJSON GridValue Source # | |
type Rep GridValue Source # | |
Defined in LDtk.Types type Rep GridValue = D1 ('MetaData "GridValue" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "GridValue" 'PrefixI 'True) (S1 ('MetaSel ('Just "color") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Color) :*: (S1 ('MetaSel ('Just "identifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |
LayerDef | |
|
Instances
LDtkRoot | |
|
Instances
data TileRenderMode Source #
Instances
data WorldLayout Source #
Instances
Instances
Bounded LayerType Source # | |
Enum LayerType Source # | |
Defined in LDtk.Types succ :: LayerType -> LayerType # pred :: LayerType -> LayerType # fromEnum :: LayerType -> Int # enumFrom :: LayerType -> [LayerType] # enumFromThen :: LayerType -> LayerType -> [LayerType] # enumFromTo :: LayerType -> LayerType -> [LayerType] # enumFromThenTo :: LayerType -> LayerType -> LayerType -> [LayerType] # | |
Eq LayerType Source # | |
Ord LayerType Source # | |
Defined in LDtk.Types | |
Read LayerType Source # | |
Show LayerType Source # | |
Generic LayerType Source # | |
FromJSON LayerType Source # | |
type Rep LayerType Source # | |
Defined in LDtk.Types type Rep LayerType = D1 ('MetaData "LayerType" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) ((C1 ('MetaCons "IntGrid" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Entities" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Tiles" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AutoLayer" 'PrefixI 'False) (U1 :: Type -> Type))) |
World | |
|
Instances
Eq World Source # | |
Ord World Source # | |
Read World Source # | |
Show World Source # | |
Generic World Source # | |
FromJSON World Source # | |
type Rep World Source # | |
Defined in LDtk.Types type Rep World = D1 ('MetaData "World" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "World" 'PrefixI 'True) ((S1 ('MetaSel ('Just "identifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "iid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "levels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Level]))) :*: (S1 ('MetaSel ('Just "worldGridHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "worldGridWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "worldLayout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorldLayout))))) |
Instances
Eq a => Eq (Rect a) Source # | |
Ord a => Ord (Rect a) Source # | |
Read a => Read (Rect a) Source # | |
Show a => Show (Rect a) Source # | |
Generic (Rect a) Source # | |
FromJSON a => FromJSON (Rect a) Source # | |
type Rep (Rect a) Source # | |
Defined in LDtk.Types type Rep (Rect a) = D1 ('MetaData "Rect" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "Rect" 'PrefixI 'True) ((S1 ('MetaSel ('Just "r_x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "r_y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :*: (S1 ('MetaSel ('Just "r_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "r_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))) |
Instances
Eq BgPos Source # | |
Ord BgPos Source # | |
Read BgPos Source # | |
Show BgPos Source # | |
Generic BgPos Source # | |
FromJSON BgPos Source # | |
type Rep BgPos Source # | |
Defined in LDtk.Types type Rep BgPos = D1 ('MetaData "BgPos" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "BgPos" 'PrefixI 'True) (S1 ('MetaSel ('Just "cropRect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Rect Float)) :*: (S1 ('MetaSel ('Just "scale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Pair Float)) :*: S1 ('MetaSel ('Just "topLeftPx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Pair Int))))) |
Instances
Eq Direction Source # | |
Ord Direction Source # | |
Defined in LDtk.Types | |
Read Direction Source # | |
Show Direction Source # | |
Generic Direction Source # | |
FromJSON Direction Source # | |
type Rep Direction Source # | |
Defined in LDtk.Types type Rep Direction = D1 ('MetaData "Direction" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) ((C1 ('MetaCons "North" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "South" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "East" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "West" 'PrefixI 'False) (U1 :: Type -> Type))) |
Instances
Eq Neighbour Source # | |
Ord Neighbour Source # | |
Defined in LDtk.Types | |
Read Neighbour Source # | |
Show Neighbour Source # | |
Generic Neighbour Source # | |
FromJSON Neighbour Source # | |
type Rep Neighbour Source # | |
Defined in LDtk.Types type Rep Neighbour = D1 ('MetaData "Neighbour" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "Neighbour" 'PrefixI 'True) (S1 ('MetaSel ('Just "dir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Direction) :*: S1 ('MetaSel ('Just "levelIid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
Instances
Layer | |
|
Instances
Instances
Eq GridPoint Source # | |
Ord GridPoint Source # | |
Defined in LDtk.Types | |
Read GridPoint Source # | |
Show GridPoint Source # | |
Generic GridPoint Source # | |
FromJSON GridPoint Source # | |
type Rep GridPoint Source # | |
Defined in LDtk.Types type Rep GridPoint = D1 ('MetaData "GridPoint" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "GridPoint" 'PrefixI 'True) (S1 ('MetaSel ('Just "cx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "cy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
Instances
Eq a => Eq (Pair a) Source # | |
Ord a => Ord (Pair a) Source # | |
Read a => Read (Pair a) Source # | |
Show a => Show (Pair a) Source # | |
Generic (Pair a) Source # | |
FromJSON a => FromJSON (Pair a) Source # | |
type Rep (Pair a) Source # | |
Defined in LDtk.Types type Rep (Pair a) = D1 ('MetaData "Pair" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "Pair" 'PrefixI 'True) (S1 ('MetaSel ('Just "p_x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "p_y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a))) |
Instances
Bounded Flip Source # | |
Enum Flip Source # | |
Eq Flip Source # | |
Ord Flip Source # | |
Read Flip Source # | |
Show Flip Source # | |
Generic Flip Source # | |
FromJSON Flip Source # | |
type Rep Flip Source # | |
Defined in LDtk.Types type Rep Flip = D1 ('MetaData "Flip" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) ((C1 ('MetaCons "NoFlip" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FlipX" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FlipY" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FlipXY" 'PrefixI 'False) (U1 :: Type -> Type))) |
data EntityReferenceInfos Source #
Instances
data FieldValue Source #
Instances
data TilesetRect Source #
Instances
Instances
Eq Tile Source # | |
Ord Tile Source # | |
Read Tile Source # | |
Show Tile Source # | |
Generic Tile Source # | |
FromJSON Tile Source # | |
type Rep Tile Source # | |
Defined in LDtk.Types type Rep Tile = D1 ('MetaData "Tile" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "Tile" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tile_flip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Flip) :*: S1 ('MetaSel ('Just "px") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Pair Int))) :*: (S1 ('MetaSel ('Just "src") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Pair Int)) :*: S1 ('MetaSel ('Just "t") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))) |
Instances
Field | |
|
Instances
Eq Field Source # | |
Ord Field Source # | |
Read Field Source # | |
Show Field Source # | |
Generic Field Source # | |
FromJSON Field Source # | |
type Rep Field Source # | |
Defined in LDtk.Types type Rep Field = D1 ('MetaData "Field" "LDtk.Types" "ldtk-types-1.2.3-DZMGLHH7vdEG0gO9iOSohR" 'False) (C1 ('MetaCons "Field" 'PrefixI 'True) ((S1 ('MetaSel ('Just "__identifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "__tile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TilesetRect))) :*: (S1 ('MetaSel ('Just "__type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "__value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldValue) :*: S1 ('MetaSel ('Just "defUid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))) |
parseFieldValue :: Text -> Value -> Parser FieldValue Source #