CONTENT CONTRACT · VERSION 1
MapDefinition
A bounded map with local anchors, complete zone coverage and population slots.
Signature
{ anchors: {MapAnchor}, atmosphere: (AtmosphereId)?, biome: BiomeId, bounds: Bounds, cell_mm: PositiveDistance, climate: ClimateId, corruption: (CorruptionDefinition)?, fog: (Fog)?, id: ContentId, in_session: (boolean)?, library: WorldLibraryId, spawn_anchor: Name, structures: ({MapStructure})?, village: (VillageArea)?, zones: {MapZone} }Fields
| Name | Type | Meaning |
|---|---|---|
anchors | {MapAnchor} | Named map placements visible or used by this declaration. Items: 1…4096; Unique entries |
atmosphere | AtmosphereId | The map's mood outdoors (areas go before it); absent: the day's own. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: atmosphere |
biome | BiomeId | Open-land biome of the coast and of zones outside the valley. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: biome |
bounds | Bounds | Half-open horizontal area, aligned with the map cell size. |
cell_mm | PositiveDistance | Positive map grid spacing; all zone bounds align to this grid. Range: 1…2147483647; Unit: mm |
climate | ClimateId | Climate definition supplying seasons and weather for this map. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: climate |
corruption | CorruptionDefinition | Growing corruption (voids, vines, safe spots); absent maps remain healthy. The vines derive from the world seed; only severed vines and hit damage are saved. |
fog | Fog | Fog over what nobody has explored yet on this map. Absent: no fog. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
in_session | boolean | Belongs to every session of the game though no passage leads there (reached only by a scene or a `teleport`: a dream, a memory); absent: false, the map belongs to a session when the start map or a passage leads there. |
library | WorldLibraryId | World library supplying prefab templates, rigs, materials and textures of this map. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:world_library |
spawn_anchor | Name | Local anchor identifier used for initial map entry. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
structures | {MapStructure} | Structures standing in a new world of this map before anyone builds, placed once at full or partial health; one placed inside another stands in that one's room. Items: 1…1024; Unique entries |
village | VillageArea | The village: a circle around a local anchor (the village fire); structures marked `village` are built only inside it. |
zones | {MapZone} | Generator regions covering the entire map without equal-priority overlap. Items: 1…4096; Unique entries |