Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Data.Tiled.Types
- data MapOrientation
- type Properties = [(String, String)]
- data TiledMap = TiledMap {
- mapPath :: FilePath
- mapOrientation :: MapOrientation
- mapWidth, mapHeight :: Int
- mapTileWidth :: Int
- mapTileHeight :: Int
- mapProperties :: Properties
- mapTilesets :: [Tileset]
- mapLayers :: [Layer]
- data Tileset = Tileset {
- tsName :: String
- tsInitialGid :: Word32
- tsTileWidth, tsTileHeight :: Int
- tsSpacing, tsMargin :: Int
- tsImages :: [Image]
- tsTileProperties :: [(Word32, Properties)]
- data Image = Image {}
- data Object = Object {}
- data Polygon = Polygon [(Int, Int)]
- data Polyline = Polyline [(Int, Int)]
- data Layer
- = Layer {
- layerName :: String
- layerOpacity :: Float
- layerIsVisible :: Bool
- layerProperties :: Properties
- layerData :: Map (Int, Int) Tile
- | ObjectLayer { }
- | ImageLayer { }
- = Layer {
- data Tile = Tile {}
Documentation
type Properties = [(String, String)] Source
Properties.
A tiled map.
Constructors
TiledMap | |
Fields
|
A set of tiles that can be used.
Constructors
Tileset | |
Fields
|
An image containing tiles.
Constructors
Image | |
An object, usable for stuff not repetitively aligned on a grid.
Constructors
Object | |
Fields
|
A polygon.
A polyline.
Either a tile layer or an object layer.
Constructors
Layer | |
Fields
| |
ObjectLayer | |
Fields
| |
ImageLayer | |
Fields
|