Implements load_zone() and load_zones() functions to parse zone definitions from TOML files. Wires zone loading into server startup to register all zones from content/zones/ directory. Updates player zone lookup to use the registry instead of hardcoded overworld check. Includes tavern.toml as first hand-built interior zone (8x6 bounded).
19 lines
297 B
TOML
19 lines
297 B
TOML
name = "tavern"
|
|
description = "a cozy tavern with a crackling fireplace"
|
|
width = 8
|
|
height = 6
|
|
toroidal = false
|
|
|
|
[terrain]
|
|
# rows as strings, one per line
|
|
rows = [
|
|
"########",
|
|
"#......#",
|
|
"#......#",
|
|
"#......#",
|
|
"#......#",
|
|
"####.###",
|
|
]
|
|
|
|
[terrain.impassable]
|
|
tiles = ["#"]
|