tinymux/tools/worldbuilder/__pycache__/executor.cpython-310.pyc
Stephen Dennis b086f22298 WorldBuilder: procedural grids, verify, rollback, things, components
Procedural generation:
  Grid generator creates WxH rooms with cardinal exits
  Seeded-random description selection (deterministic)
  Density parameter controls connectivity (0.0-1.0)
  Edge ports for wiring grid to external rooms
  forest_area.yaml — 7 description variants
  street_grid.yaml — 5 description variants

Verify command (executor.py verify):
  Connects to live game, checks rooms match spec
  Validates names, descriptions, attributes against state
  Reports discrepancies

Rollback command (executor.py rollback):
  Destroys objects in reverse order (exits first, then rooms)
  Clears state file after destruction
  Dry-run mode supported

Thing support:
  Thing model (name, location, description, flags, attrs, parent)
  Parsed from spec YAML and component definitions
  Compiled to @create + @desc + &attr + @parent commands
  Shown in plan output
  Component things expand with parameter substitution

New components:
  tavern.yaml — 3 rooms + barkeeper NPC thing
  street_grid.yaml — procedural city block grid

Test specs:
  town.yaml — combines tavern + street_grid + manual rooms/things
  forest.yaml — 4x4 procedural forest with edge connection

Zone support:
  @chzone emitted in compiler for all rooms
  @parent emitted when room has parent field

All 4 test specs pass DRC.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 14:28:34 -06:00

10 KiB