Reserve container persistence schema

This commit is contained in:
2026-05-18 19:26:30 -07:00
parent f6ed45df31
commit 06666b1dc3
4 changed files with 81 additions and 1 deletions
+8
View File
@@ -429,6 +429,14 @@ from `UAgrarianInventoryComponent::Items`, and restored through
values and broadcasts inventory changes so HUD/debug listeners see loaded item
state.
Container persistence reserves `FAgrarianSavedContainer` records with stable
container ID, container type ID, transform, item stacks, and owner player ID.
Version 0.1.M does not yet have a placed container actor to capture; the current
`simple_container` remains a craftable inventory item and is covered by player
inventory persistence. The saved container array is intentionally present now
so the first placed-container actor can use the same save format without a
schema break.
World time is stored in `UAgrarianSaveGame::WorldHours`. The persistence
subsystem captures it from `AAgrarianGameState::WorldHours` during world save
and restores it only on authority during world load.