Safe Haskell | None |
---|
Abstract syntax of client commands. See https://github.com/kosmikus/LambdaHack/wiki/Client-server-architecture.
- data CmdClientAI
- data CmdClientUI
- debugCmdClientAI :: MonadActionRO m => CmdClientAI -> m Text
- debugCmdClientUI :: MonadActionRO m => CmdClientUI -> m Text
- debugAid :: MonadActionRO m => ActorId -> Text -> m Text
- data ChanServer c = ChanServer {
- fromServer :: TQueue c
- toServer :: TQueue CmdSer
- type ConnServerFaction = ((ChanFrontend, ChanServer CmdClientUI), ChanServer CmdClientAI)
- type ConnServerDict = EnumMap FactionId ConnServerFaction
Documentation
data CmdClientAI Source
Abstract syntax of client commands that don't use the UI.
data CmdClientUI Source
Abstract syntax of client commands that use the UI.
debugCmdClientAI :: MonadActionRO m => CmdClientAI -> m TextSource
debugCmdClientUI :: MonadActionRO m => CmdClientUI -> m TextSource
data ChanServer c Source
Connection channels between the server and a single client.
ChanServer | |
|
Show (ChanServer c) |
type ConnServerFaction = ((ChanFrontend, ChanServer CmdClientUI), ChanServer CmdClientAI)Source
Connection to the human-controlled client of a faction and/or to the AI client for the same faction.
type ConnServerDict = EnumMap FactionId ConnServerFactionSource
Connection information for all factions, indexed by faction identifier.