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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Server

Contents

Description

Semantics of requests that are sent to the server.

See https://github.com/LambdaHack/LambdaHack/wiki/Client-server-architecture.

Synopsis

Re-exported from Game.LambdaHack.Server.LoopServer

loopSer Source

Arguments

:: (MonadAtomic m, MonadServerReadRequest m) 
=> COps

game content

-> DebugModeSer

server debug parameters

-> (FactionId -> ChanServer ResponseUI RequestUI -> IO ())

the code to run for UI clients

-> (FactionId -> ChanServer ResponseAI RequestAI -> IO ())

the code to run for AI clients

-> m () 

Start a game session, including the clients, and then loop, communicating with the clients.

Re-exported from Game.LambdaHack.Server.MonadServer

speedupCOps :: Bool -> COps -> COps Source

Compute and insert auxiliary optimized components into game content, to be used in time-critical sections of the code.

Re-exported from Game.LambdaHack.Server.Commandline

debugArgs :: [String] -> IO DebugModeSer Source

Parse server debug parameters from commandline arguments.

Re-exported from Game.LambdaHack.Server.State

sdebugCli :: DebugModeSer -> DebugModeCli Source

client debug parameters