Safe Haskell | None |
---|---|
Language | Haskell2010 |
A game requires the engine provided by the library, perhaps customized,
and game content, defined completely afresh for the particular game.
The general type of the content is ContentDef
and it has instances
for all content kinds, such as items kinds
(Game.LambdaHack.Content.ItemKind).
The possible kinds are fixed in the library and all defined within
the library source code directory. On the other hand, game content,
that is the values whose types are ContentDef
instances,
are defined in the directory hosting the particular game definition.
- data ContentDef a = ContentDef {}
- contentFromList :: [a] -> Vector a
Documentation
data ContentDef a Source #
The general type of a particular game content, e.g., item kinds.
ContentDef | |
|
contentFromList :: [a] -> Vector a Source #