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

Swarm.Web.Worldview

Description

 

Documentation

data GridResponse Source #

Constructors

GridResponse 

Instances

Instances details
ToJSON GridResponse Source # 
Instance details

Defined in Swarm.Web.Worldview

Generic GridResponse Source # 
Instance details

Defined in Swarm.Web.Worldview

Associated Types

type Rep GridResponse :: Type -> Type #

ToSample GridResponse Source # 
Instance details

Defined in Swarm.Web.Worldview

type Rep GridResponse Source # 
Instance details

Defined in Swarm.Web.Worldview

type Rep GridResponse = D1 ('MetaData "GridResponse" "Swarm.Web.Worldview" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-web" 'False) (C1 ('MetaCons "GridResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "isPlaying") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "grid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CellGrid))))

getCellGrid :: Scenario -> GameState -> AreaDimensions -> CellGrid Source #

data CellGrid Source #

Constructors

CellGrid 

Fields

Instances

Instances details
ToJSON CellGrid Source # 
Instance details

Defined in Swarm.Web.Worldview

Generic CellGrid Source # 
Instance details

Defined in Swarm.Web.Worldview

Associated Types

type Rep CellGrid :: Type -> Type #

Methods

from :: CellGrid -> Rep CellGrid x #

to :: Rep CellGrid x -> CellGrid #

type Rep CellGrid Source # 
Instance details

Defined in Swarm.Web.Worldview

type Rep CellGrid = D1 ('MetaData "CellGrid" "Swarm.Web.Worldview" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-web" 'False) (C1 ('MetaCons "CellGrid" 'PrefixI 'True) (S1 ('MetaSel ('Just "coords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Grid Key)) :*: S1 ('MetaSel ('Just "colors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HexColor])))