Safe Haskell | None |
---|---|
Language | Haskell2010 |
Semantics of requests that are sent to the server.
See https://github.com/LambdaHack/LambdaHack/wiki/Client-server-architecture.
- loopSer :: (MonadAtomic m, MonadServerReadRequest m) => COps -> DebugModeSer -> (FactionId -> ChanServer ResponseUI RequestUI -> IO ()) -> (FactionId -> ChanServer ResponseAI RequestAI -> IO ()) -> m ()
- speedupCOps :: Bool -> COps -> COps
- debugArgs :: [String] -> IO DebugModeSer
- sdebugCli :: DebugModeSer -> DebugModeCli
Re-exported from Game.LambdaHack.Server.LoopServer
:: (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