| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.Game.World.Load
Description
Loading world descriptions from `worlds/*.world`.
Synopsis
- loadWorlds :: (Has (Accum (Seq SystemFailure)) sig m, Has (Lift IO) sig m) => TerrainEntityMaps -> m WorldMap
- loadWorld :: Has (Throw SystemFailure) sig m => FilePath -> TerrainEntityMaps -> (FilePath, String) -> m (Text, Some (TTerm '[]))
- stripDir :: FilePath -> FilePath -> FilePath
Documentation
loadWorlds :: (Has (Accum (Seq SystemFailure)) sig m, Has (Lift IO) sig m) => TerrainEntityMaps -> m WorldMap Source #
Load and typecheck all world descriptions from `worlds/*.world`. Emit a warning for each one which fails to parse or typecheck.