Replace the current layout with a loaded one. History is reset (you cannot
undo across a load) and a LayoutLoaded event opens the new timeline.
Move several buildings as one atomic, undoable gesture (e.g. dragging a multi-selection). Either every move applies or none does — a mid-batch failure rolls the whole thing back. An empty list is a successful no-op.
Move a mixed set of buildings and walls in one atomic, undoable step (drag / arrow-nudge of a selection that can hold both kinds). Either every move applies or none does. An empty set is a successful no-op.
Remove a mixed set of buildings and walls in one atomic, undoable step. Used by the editor's "delete selection", where the selection can hold both kinds. An empty selection is a successful no-op.
StaticcreateStaticforOptionalids: IdGenerator
The primary application-layer facade — the port every adapter (React UI, CLI, tests) drives. It wires the Village aggregate, the EventStore, the CommandStack and an id source together and exposes intention-revealing operations that each return a
Result.No adapter constructs commands or touches the aggregate directly; they call these methods. That keeps game logic entirely out of the UI.