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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Server.LoopServer

Description

The main loop of the server, processing human and computer player moves turn by turn.

Synopsis

Documentation

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.