Footprint of a placed building. Throws only on a missing definition (a bug).
Move a wall to a new tile, preserving its id. Validated atomically.
Id of whatever occupies a tile (building or wall), if anything.
Move and/or rotate a building. Validates the new footprint atomically.
StaticfromRebuild a village from a snapshot. Placement is re-validated so a corrupt/incompatible save surfaces as an error rather than silent bad state.
Aggregate root for a village layout. It is the single guardian of spatial integrity: every building/wall it holds is in-bounds and non-overlapping, enforced on each mutation. Mutations return
Result— expected conflicts (overlap, out of bounds) are values, not exceptions.The aggregate is deliberately behaviour-only about space. Game rules (counts, unlock tiers, required buildings) live in the rules/validation packages so this stays reusable across progression tiers and other games.