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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.Config

Description

Personal game configuration file type definitions.

Synopsis

Documentation

data Config Source #

Fully typed contents of the UI config file. This config is a part of a game client.

Constructors

Config 

Fields

Instances

Show Config Source # 
Generic Config Source # 

Associated Types

type Rep Config :: * -> * #

Methods

from :: Config -> Rep Config x #

to :: Rep Config x -> Config #

Binary Config Source # 

Methods

put :: Config -> Put #

get :: Get Config #

putList :: [Config] -> Put #

NFData Config Source # 

Methods

rnf :: Config -> () #

type Rep Config Source # 
type Rep Config = D1 * (MetaData "Config" "Game.LambdaHack.Client.UI.Config" "LambdaHack-0.6.1.0-HURqEs4cFyW7LJywblRLqn" False) (C1 * (MetaCons "Config" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "configCommands") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [(KM, CmdTriple)])) ((:*:) * (S1 * (MetaSel (Just Symbol "configHeroNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [(Int, (Text, Text))])) (S1 * (MetaSel (Just Symbol "configVi") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "configLaptop") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "configGtkFontFamily") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "configSdlFontFile") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "configSdlTtfSizeAdd") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "configSdlFonSizeAdd") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "configFontSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))) ((:*:) * (S1 * (MetaSel (Just Symbol "configColorIsBold") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "configHistoryMax") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "configMaxFps") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "configNoAnim") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "configRunStopMsgs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "configCmdline") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [String])))))))

mkConfig :: COps -> Bool -> IO Config Source #

Read and parse UI config file.