swarm-0.7.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellNone
LanguageHaskell2010

Swarm.TUI.Launch.Model

Description

Types for representing state of the launch dialog, along with conversion functions for validated launch parameters.

Synopsis

Documentation

type EditingLaunchParams = LaunchParams (Either Text) Source #

Use this to store error messages on individual fields

toSerializableParams :: ValidatedLaunchParams -> SerializableLaunchParams Source #

fromSerializableParams :: SerializableLaunchParams -> IO EditingLaunchParams Source #

data LaunchControls Source #

UI elements to configure scenario launch options

isDisplayedFor :: Lens' LaunchControls (Maybe (ScenarioWith ScenarioInfo)) Source #

data LaunchOptions Source #

UI elements to configure scenario launch options