Versions in this module Expand all Collapse all v0 v0.2.0 Oct 1, 2026 v0.1.0 Sep 29, 2026 Changes in this version + const BorderWidth + const DeepElevation + const GreatRiverMinKm2 + const InlandSeaElevation + const Layout + const OpenElevation + const RiverMinKm2 + const SchemaVersion + const ShallowElevation + var Biomes = []Biome + var Corners = [6]Corner + var Depths = []Depth + var Flags = []Flag + var Landforms = []Landform + var RiverSizes = []RiverSize + var Sides = [6]Side + var Surfaces = []Surface + func Build(g hmz2ele.Grid, doc *hmz2bio.Document, rivers *hmz2riv.Rivers, opt Options) (*Map, Report, error) + func Neighbor(col, row int, s Side) (int, int) + func RenderPreview(m *Map, apothem, scale int) (image.Image, error) + func Validate(m *Map) error + func Version() semver.Version + type Biome string + const BiomeAlpine + const BiomeBorealForest + const BiomeClear + const BiomeCloudForest + const BiomeDesert + const BiomeEmpty + const BiomeGrassland + const BiomeSavanna + const BiomeScrubland + const BiomeSteppe + const BiomeTemperateForest + const BiomeTemperateRainforest + const BiomeTropicalDryForest + const BiomeTropicalRainforest + const BiomeTundra + type Corner string + const CornerE + const CornerNE + const CornerNW + const CornerSE + const CornerSW + const CornerW + type Depth string + const DepthDeep + const DepthNone + const DepthOpen + const DepthShallow + type Flag string + const FlagCoast + const FlagImpassable + const FlagInlandSea + const FlagRiver + const FlagVolcano + type Hex struct + Biome Biome + Col int + Depth Depth + Elevation int + Flags []Flag + Landform Landform + Rivers []River + Row int + Surface Surface + func (h *Hex) HasFlag(f Flag) bool + type Kind int + const KindBorder + const KindFill + const KindSource + type Landform string + const LandformBadlands + const LandformCliffs + const LandformEmpty + const LandformFlats + const LandformFreshWater + const LandformHills + const LandformMountains + const LandformPlains + const LandformPlateaus + const LandformRollingPlains + const LandformSaltWater + const LandformVolcanicHighlands + func (l Landform) IsLand() bool + type Map struct + Border int + Climate Placement + Columns int + HexKm float64 + Hexes []Hex + Hmz2mapVersion string + Layout string + Rows int + SchemaVersion int + Sources []Source + func (m *Map) At(col, row int) *Hex + func (m *Map) IsBorder(col, row int) bool + type Options struct + Border int + ClimateFile string + HexKm float64 + RiversFile string + type Placement struct + BottomLatDeg float64 + TopLatDeg float64 + type Report struct + CliffPasses int + CliffsFilled int + DepthChanges int + EdgesOffMap int + EdgesTouching [3]int + Kinds [3]int + type River struct + DrainageKm2 float64 + Flow Corner + Side Side + Size RiverSize + type RiverSize string + const SizeGreatRiver + const SizeRiver + const SizeStream + func SizeOf(drainageKm2 float64) RiverSize + type Side string + const SideN + const SideNE + const SideNW + const SideS + const SideSE + const SideSW + func (s Side) Corners() (Corner, Corner) + func (s Side) Opposite() Side + type Source struct + FileName string + Tool string + Version string + type Summary struct + Biomes map[string]int + Depths map[string]int + Flags map[string]int + LandMax int + LandMin int + Landforms map[string]int + RiverEdges map[string]int + Surfaces map[string]int + func Summarize(m *Map) Summary + type Surface string + const SurfaceBogs + const SurfaceClear + const SurfaceEmpty + const SurfaceGlacialIce + const SurfaceMangroves + const SurfaceMarshes + const SurfaceSaltFlats + const SurfaceSwamps