Load world state on server start
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user