swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Game.State.Runtime

Description

Runtime state and utility functions

Synopsis

Documentation

Lenses

webPort :: Lens' RuntimeState (Maybe Port) Source #

The port on which the HTTP debug service is running.

eventLog :: Lens' RuntimeState (Notifications LogEntry) Source #

A log of runtime events.

This logging is separate from the logging done during game-play. If some error happens before a game is even selected, this is the place to log it.

scenarios :: Lens' RuntimeState ScenarioCollection Source #

The collection of scenarios that comes with the game.

appData :: Lens' RuntimeState (Map Text Text) Source #

Free-form data loaded from the data directory, for things like the logo, about page, tutorial story, etc.

stdGameConfigInputs :: Lens' RuntimeState GameStateConfig Source #

Built-in resources for loading games

Utility