Add server autosave interval

This commit is contained in:
2026-05-18 19:29:35 -07:00
parent 06666b1dc3
commit a7ca8d10f8
5 changed files with 100 additions and 1 deletions
+6
View File
@@ -447,6 +447,12 @@ reapplies the mapped weather inputs; otherwise it restores the saved enum
weather state. This gives the MVP a deterministic fallback while preserving the
latest real/provider-mapped tile weather payload when one was available.
The server-side autosave interval lives on `AAgrarianGameGameMode` as
`ServerAutoSaveIntervalSeconds`, defaulting to five minutes. On authority,
`BeginPlay` starts a repeating timer that calls `RunServerAutoSave`, which uses
`UAgrarianPersistenceSubsystem::SaveCurrentWorld`. Setting the interval to zero
disables the MVP autosave timer.
## Testing Gates
Minimum persistence smoke test: