Safe Haskell | None |
---|---|
Language | Haskell2010 |
Very basic types for content definitions with their internals exposed.
Synopsis
- newtype GroupName c = GroupName {}
- displayGroupName :: GroupName c -> Text
- data ContentId c
- toContentId :: Word16 -> ContentId c
- fromContentId :: ContentId c -> Word16
- contentIdIndex :: ContentId c -> Int
- type ContentSymbol c = Char
- toContentSymbol :: Char -> ContentSymbol c
- displayContentSymbol :: ContentSymbol c -> Char
Documentation
Instances
Eq (GroupName c) Source # | |
Ord (GroupName c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal | |
Show (GroupName c) Source # | |
Binary (GroupName c) Source # | |
NFData (GroupName c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal | |
Hashable (GroupName c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal |
displayGroupName :: GroupName c -> Text Source #
This does not need to be 1-1, so should not be used in place of the
Eq
instance, etc.
Content identifiers for the content type c
.
Instances
Enum (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal succ :: ContentId c -> ContentId c # pred :: ContentId c -> ContentId c # toEnum :: Int -> ContentId c # fromEnum :: ContentId c -> Int # enumFrom :: ContentId c -> [ContentId c] # enumFromThen :: ContentId c -> ContentId c -> [ContentId c] # enumFromTo :: ContentId c -> ContentId c -> [ContentId c] # enumFromThenTo :: ContentId c -> ContentId c -> ContentId c -> [ContentId c] # | |
Eq (ContentId c) Source # | |
Ord (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal | |
Show (ContentId c) Source # | |
Binary (ContentId c) Source # | |
Hashable (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal | |
UnboxRepClass (ContentId k) Source # | |
type UnboxRep (ContentId k) Source # | |
Defined in Game.LambdaHack.Common.PointArray |
toContentId :: Word16 -> ContentId c Source #
fromContentId :: ContentId c -> Word16 Source #
contentIdIndex :: ContentId c -> Int Source #
type ContentSymbol c = Char Source #
toContentSymbol :: Char -> ContentSymbol c Source #
displayContentSymbol :: ContentSymbol c -> Char Source #