LambdaHack-0.7.0.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Content.RuleKind

Description

The type of game rule sets and assorted game data.

Synopsis

Documentation

data RuleKind Source #

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.

Constructors

RuleKind 

Fields

Instances

Show RuleKind Source #

A dummy instance of the Show class, to satisfy general requirments about content. We won't don't expect to ever print out whole rule sets.

validateSingleRuleKind :: RuleKind -> [Text] Source #

Catch invalid rule kind definitions.

validateAllRuleKind :: [RuleKind] -> [Text] Source #

Since we have only one rule kind, the set of rule kinds is always valid.