| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.TUI.Editor.Util
Description
Documentation
getEntitiesForList :: EntityMap -> Vector EntityFacade Source #
getEditingBounds :: WorldDescription -> (Bool, Cosmic BoundsRectangle) Source #
getEditorContentAt :: TerrainMap -> WorldOverdraw -> MultiWorld Int Entity -> Cosmic Coords -> (TerrainType, Maybe EntityPaint) Source #
getEditorTerrainAt :: TerrainMap -> WorldOverdraw -> MultiWorld Int Entity -> Cosmic Coords -> TerrainType Source #
isOutsideTopLeftCorner Source #
Arguments
| :: Coords | top left corner coords |
| -> Coords | current coords |
| -> Bool |
isOutsideBottomRightCorner Source #
Arguments
| :: Coords | bottom right corner coords |
| -> Coords | current coords |
| -> Bool |
Arguments
| :: BoundsRectangle | full bounds |
| -> Coords | current coords |
| -> Bool |
getEditedMapRectangle :: TerrainMap -> WorldOverdraw -> Maybe (Cosmic BoundsRectangle) -> MultiWorld Int Entity -> Grid CellPaintDisplay Source #