Safe Haskell | None |
---|
Operations for starting and restarting the game.
- gameReset :: MonadServer m => COps -> DebugModeSer -> Maybe StdGen -> m State
- reinitGame :: (MonadAtomic m, MonadServer m) => m ()
- initPer :: MonadServer m => m ()
- recruitActors :: (MonadAtomic m, MonadServer m) => [Point] -> LevelId -> Time -> FactionId -> m Bool
- applyDebug :: MonadServer m => m ()
- initDebug :: MonadStateRead m => COps -> DebugModeSer -> m DebugModeSer
Documentation
gameReset :: MonadServer m => COps -> DebugModeSer -> Maybe StdGen -> m StateSource
reinitGame :: (MonadAtomic m, MonadServer m) => m ()Source
initPer :: MonadServer m => m ()Source
recruitActors :: (MonadAtomic m, MonadServer m) => [Point] -> LevelId -> Time -> FactionId -> m BoolSource
Spawn actors of any specified faction, friendly or not. To be used for initial dungeon population and for the summon effect.
applyDebug :: MonadServer m => m ()Source
Apply debug options that don't need a new game.
initDebug :: MonadStateRead m => COps -> DebugModeSer -> m DebugModeSerSource