Shared staging and commit bookkeeping for the placement-world restore coordinators. PlacementWorldRestoreCoordinator2D and PlacementWorldRestoreCoordinator3D stage every saved root off-tree, build one Plan per root, validate the batch, swap generations, and roll back on failure. This base owns the parts both share: staging the saved states, collecting the roots the new generation replaces, and the typed Result. Dimensions own plan preparation, projection commits, and rollback.
Source: addons/grid_placement/services/placement_world_restore_coordinator.gd
Syntax
class PlacementWorldRestoreCoordinator extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
node | Property | One staged root and the world record it commits. |
entry | Property | |
record | Property | |
mount | Property | GRID mount; null for SMOOTH plans and for 2D. |
is_smooth | Method | |
ok | Property | Outcome of a restore: ok and the restored roots, in commit order. nodes is empty when the restore failed. |
nodes | Property | |
world_registry | Property |
Guides that use this class
Tutorials built on Grid Placement
- Godot multiplayer grid placement: one host, four sessions
- Godot 2D grid building system: paint, place, save
- Godot 3D grid building system: the runtime loop
- Godot 4 grid-building plugins: build mode vs editor tools
- 3D room placement in Godot: build rooms and stack storeys
- 3D grid placement in Godot 4: full setup tutorial
- Snap to a TileMap in Godot: 2D grid placement
- How to make a farming system in Godot
- How to snap objects to a 3D grid in Godot