| 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 | |
| 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
| UnboxRepClass (ContentId k) Source # | |
| Enum (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal Methods 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] # | |
| Show (ContentId c) Source # | |
| Binary (ContentId c) Source # | |
| Eq (ContentId c) Source # | |
| Ord (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal | |
| Hashable (ContentId c) Source # | |
Defined in Game.LambdaHack.Definition.DefsInternal | |
| 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 #