Copyright | © Jonathan Dowland 2020 |
---|---|
License | GPL-3 |
Maintainer | jon+hackage@dow.land |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell98 |
Data types that model the internal data structures in Doom to represent
maps, as well as an interim data-type (WadMap
) to bridge between these
and Liquorice's more abstract types.
Synopsis
- data WadLump
- = WadLabel String
- | WadThings [Thing]
- | WadVertexes [Point]
- | WadSectors [Sector]
- | WadLinedefs [Linedef]
- | WadSidedefs [Sidedef]
- | WadLump String ByteString
- wadLumpLength :: WadLump -> Int
- wadLumpName :: WadLump -> String
- data Linedef = Linedef {}
- data Sidedef = Sidedef {}
- data WadMap = WadMap {
- mapLabel :: String
- mapThings :: [Thing]
- mapLinedefs :: [Linedef]
- mapSidedefs :: [Sidedef]
- mapVertexes :: [Point]
- mapSectors :: [Sector]
- mapWad2Wad :: WadMap -> [WadLump]
- dumpWad :: [WadLump] -> ByteString
Documentation
Enumeration (of sorts) of supported WAD lump types.
wadLumpLength :: WadLump -> Int Source #
Calculate the lump length of a given WadLump type.
wadLumpName :: WadLump -> String Source #
Determine the lump name for a given WadLump.
A Doom Line definition.
A Doom Line Side definition.
A representation of all the WAD lumps that are required for a Doom map.
WadMap | |
|
mapWad2Wad :: WadMap -> [WadLump] Source #
Process a WadMap
into a list of WadLumps
that could be written to
a PWAD.
dumpWad :: [WadLump] -> ByteString Source #
Convert a list of WadLump
s into a PWAD represented as a Lazy
ByteString
.