Safe Haskell | None |
---|---|
Language | Haskell2010 |
The type of game rule sets and assorted game data.
Synopsis
- data RuleKind = RuleKind {
- rsymbol :: Char
- rname :: Text
- rfreq :: Freqs RuleKind
- rtitle :: Text
- rfontDir :: FilePath
- rexeVersion :: Version
- rcfgUIName :: FilePath
- rcfgUIDefault :: String
- rmainMenuArt :: Text
- rintroScreen :: [String]
- rfirstDeathEnds :: Bool
- rwriteSaveClips :: Int
- rleadLevelClips :: Int
- rscoresFile :: FilePath
- rnearby :: Int
- makeData :: [RuleKind] -> ContentData RuleKind
- validateSingle :: RuleKind -> [Text]
- validateAll :: [RuleKind] -> ContentData RuleKind -> [Text]
Documentation
The type of game rule sets and assorted game data.
In principle, it'se possible to have many rule sets and switch between them during a game session or even a single game.
RuleKind | |
|
Instances
Internal operations
validateSingle :: RuleKind -> [Text] Source #
Catch invalid rule kind definitions.
validateAll :: [RuleKind] -> ContentData RuleKind -> [Text] Source #
Since we have only one rule kind, the set of rule kinds is always valid.