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

Swarm.Game.Scenario.Topography.Structure.Assembly

Description

Definitions of "structures" for use within a map as well as logic for combining them.

Synopsis

Documentation

mergeStructures :: Map StructureName (NamedStructure (Maybe a)) -> Parentage Placement -> PStructure (Maybe a) -> Either Text (MergedStructure (Maybe a)) Source #

Overlays all of the "child placements", such that the children encountered later in the YAML file supersede the earlier ones (dictated by using foldl instead of foldr).