Add inventory persistence restore hook

This commit is contained in:
2026-05-17 13:56:28 -07:00
parent 09eed7c4c4
commit ac9fee463c
7 changed files with 95 additions and 3 deletions
+3 -1
View File
@@ -100,7 +100,9 @@ player's inventory without a translation layer.
Save/load responsibilities:
- Save the player inventory from `UAgrarianInventoryComponent::Items`.
- Restore the stack array onto the component during load.
- Restore the stack array through
`UAgrarianInventoryComponent::RestoreSavedItems` during load so HUD/UI
listeners receive `OnInventoryChanged`.
- Recompute derived values such as total weight after load from stack data.
- Avoid saving UI-only selection state as part of the inventory model.