License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Swarm.Web.Worldview
Description
Documentation
data GridResponse Source #
Instances
ToJSON GridResponse Source # | |
Defined in Swarm.Web.Worldview Methods toJSON :: GridResponse -> Value # toEncoding :: GridResponse -> Encoding # toJSONList :: [GridResponse] -> Value # toEncodingList :: [GridResponse] -> Encoding # omitField :: GridResponse -> Bool # | |
Generic GridResponse Source # | |
Defined in Swarm.Web.Worldview Associated Types type Rep GridResponse :: Type -> Type # | |
ToSample GridResponse Source # | |
Defined in Swarm.Web.Worldview Methods toSamples :: Proxy GridResponse -> [(Text, GridResponse)] # | |
type Rep GridResponse Source # | |
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 #
Instances
ToJSON CellGrid Source # | |
Generic CellGrid Source # | |
type Rep CellGrid Source # | |
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]))) |