Load world state on server start

This commit is contained in:
2026-05-18 19:32:25 -07:00
parent a7ca8d10f8
commit 9aa2f8bee3
5 changed files with 114 additions and 1 deletions
+6
View File
@@ -453,6 +453,12 @@ The server-side autosave interval lives on `AAgrarianGameGameMode` as
`UAgrarianPersistenceSubsystem::SaveCurrentWorld`. Setting the interval to zero
disables the MVP autosave timer.
Load-on-server-start also lives on `AAgrarianGameGameMode` through
`bLoadWorldOnServerStart`, enabled by default. On authoritative `BeginPlay`, the
GameMode registers the current MVP persistent actor classes, checks
`DoesSaveExist`, and calls `LoadCurrentWorld` without clearing existing map
actors so map-authored resources and startup content remain owned by the map.
## Testing Gates
Minimum persistence smoke test: