Add server autosave interval
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user