CONTENT CONTRACT · VERSION 1
map
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)?, kind: "map", 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. |
kind | "map" | Discriminant |
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 |
Validated example
{
"anchors": [
{
"id": "arrival",
"position_mm": [
0,
0,
0
]
},
{
"id": "lookout",
"position_mm": [
4000,
0,
2000
]
}
],
"biome": "core:meadow",
"bounds": {
"end_x_mm": 72000,
"end_z_mm": 48000,
"start_x_mm": -48000,
"start_z_mm": -48000
},
"cell_mm": 1000,
"climate": "core:mild_climate",
"id": "core:training_meadow",
"kind": "map",
"library": "core:valley_library",
"spawn_anchor": "arrival",
"zones": [
{
"bounds": {
"end_x_mm": 24000,
"end_z_mm": 48000,
"start_x_mm": -48000,
"start_z_mm": -48000
},
"generator": {
"operation": "flat",
"parameters": {
"height_mm": 0,
"material": "core:grass"
},
"seed_salt": "meadow_ground",
"version": 1
},
"id": "meadow",
"population": [],
"priority": 0
},
{
"bounds": {
"end_x_mm": 72000,
"end_z_mm": 48000,
"start_x_mm": 24000,
"start_z_mm": -48000
},
"generator": {
"operation": "scatter",
"parameters": {
"base": {
"operation": "heightfield",
"parameters": {
"amplitude_mm": 2000,
"base_height_mm": 0,
"edge_fade_mm": 8000,
"material": "core:grass",
"wavelength_mm": 16000
},
"seed_salt": "woodland_hills",
"version": 1
},
"choices": [
{
"prefab": "core:standing_stone",
"weight": 1
}
],
"density_per_km2": 4000,
"max_count": 120,
"min_distance_mm": 4000
},
"seed_salt": "woodland_stones",
"version": 1
},
"id": "woodland",
"population": [],
"priority": 0
},
{
"bounds": {
"end_x_mm": 24000,
"end_z_mm": 30000,
"start_x_mm": -48000,
"start_z_mm": 12000
},
"generator": {
"operation": "river",
"parameters": {
"base": {
"operation": "flat",
"parameters": {
"height_mm": 0,
"material": "core:grass"
},
"seed_salt": "brook_banks",
"version": 1
},
"bed_material": "core:earth",
"depth_mm": 1500,
"points_mm": [
[
-48000,
24000
],
[
-12000,
20000
],
[
20000,
16000
]
],
"surface_y_mm": -500,
"water_material": "core:water",
"width_mm": 4000
},
"seed_salt": "brook",
"version": 1
},
"id": "brook",
"population": [],
"priority": 1
},
{
"bounds": {
"end_x_mm": 24000,
"end_z_mm": -6000,
"start_x_mm": -48000,
"start_z_mm": -14000
},
"generator": {
"operation": "road",
"parameters": {
"base": {
"operation": "flat",
"parameters": {
"height_mm": 0,
"material": "core:grass"
},
"seed_salt": "lane_verge",
"version": 1
},
"material": "core:path",
"max_grade_permille": 200,
"points_mm": [
[
-48000,
-10000
],
[
23000,
-10000
]
],
"width_mm": 3000
},
"seed_salt": "lane",
"version": 1
},
"id": "lane",
"population": [],
"priority": 1
}
]
}