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
+8 -1
View File
@@ -441,12 +441,19 @@ This document defines:
Implementation work remains tracked separately in the roadmap.
The MVP resource-node implementation stores depletion as existing map/tile
actor state. Each `AAgrarianResourceNode` may define a stable
`PersistenceNodeId`; otherwise the actor name is used as a fallback. Save files
capture `RemainingHarvests` for resource nodes present in the loaded world and
restore only matching existing nodes. This deliberately avoids spawning resource
nodes from saves, keeping tile-authored resources owned by tile content while
letting persistence remember depletion for active tiles.
## Open Questions
- Should the first playable MVP use `USaveGame`, JSON, or a hybrid save
backend?
- What is the first stable `SaveFormatVersion` value?
- Which resource nodes should persist depletion in Ground Zero?
- Should disconnected players remain in world physically or be removed?
- How much inventory should death/respawn preserve?
- When do saves move from file-based records to database-backed records?