Add resource node persistence

This commit is contained in:
2026-05-17 17:08:05 -07:00
parent 843340ebdc
commit 5da545e000
13 changed files with 276 additions and 4 deletions
+9
View File
@@ -458,6 +458,15 @@ plants remain pure bare-hand gathering. Later nodes can disable
`bAllowBareHandGathering` when the game has proper tool equipment, durability,
and feedback UI.
Resource node persistence is map/tile state, not a spawned-actor replay path.
`UAgrarianSaveGame` stores `FAgrarianSavedResourceNode` records keyed by
`AAgrarianResourceNode::PersistenceNodeId`, with the actor name as a fallback.
`UAgrarianPersistenceSubsystem` captures only resource nodes that exist in the
currently loaded world and restores matching existing nodes by stable id. This
keeps the MVP compatible with later Earth-scale tiles: a tile contributes
resource depletion state only when its resource actors actually exist, and tile
generation/placement scripts should assign deterministic node ids.
### Wildlife Navigation
MVP wildlife movement is server authoritative. `AAgrarianWildlifeBase` uses an