| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Server.LoopServer
Description
The main loop of the server, processing human and computer player moves turn by turn.
- loopSer :: (MonadAtomic m, MonadServerReadRequest m) => COps -> DebugModeSer -> (FactionId -> ChanServer ResponseUI RequestUI -> IO ()) -> (FactionId -> ChanServer ResponseAI RequestAI -> IO ()) -> m ()
Documentation
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.