Safe Haskell | None |
---|
Operations for starting and restarting the game.
- applyDebug :: MonadServer m => m ()
- gameReset :: MonadServer m => COps -> DebugModeSer -> Maybe StdGen -> m State
- reinitGame :: (MonadAtomic m, MonadConnServer m) => m ()
- saveBkpAll :: (MonadAtomic m, MonadServer m, MonadConnServer m) => Bool -> m ()
- initPer :: MonadServer m => m ()
Documentation
applyDebug :: MonadServer m => m ()Source
Apply debug options that don't need a new game.
gameReset :: MonadServer m => COps -> DebugModeSer -> Maybe StdGen -> m StateSource
reinitGame :: (MonadAtomic m, MonadConnServer m) => m ()Source
saveBkpAll :: (MonadAtomic m, MonadServer m, MonadConnServer m) => Bool -> m ()Source
Save game on server and all clients. Clients are pinged first, which greatly reduced the chance of saves being out of sync.
initPer :: MonadServer m => m ()Source