Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Game.LambdaHack.Definition.DefsInternal
Description
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
Constructors
GroupName | |
Fields |
Instances
Show (GroupName c) Source # | |
Binary (GroupName c) Source # | |
NFData (GroupName c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal | |
Eq (GroupName c) Source # | |
Ord (GroupName c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal Methods compare :: GroupName c -> GroupName c -> Ordering Source # (<) :: GroupName c -> GroupName c -> Bool Source # (<=) :: GroupName c -> GroupName c -> Bool Source # (>) :: GroupName c -> GroupName c -> Bool Source # (>=) :: GroupName c -> GroupName c -> Bool Source # | |
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
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 #