Add MVP reconnect snapshots

This commit is contained in:
2026-05-18 15:23:01 -07:00
parent 3b772da73c
commit 0b9a8b7b30
7 changed files with 208 additions and 49 deletions
+8 -5
View File
@@ -271,11 +271,14 @@ Initial latency testing should cover:
MVP behavior:
- disconnect removes the player's pawn from active control;
- player survival/inventory can be preserved by the current persistence
mechanism if available;
- reconnect may respawn the player at the last saved state or MVP spawn point,
depending on persistence maturity;
- disconnect removes the player's pawn from active control and captures a
player reconnect snapshot during `AAgrarianGameGameMode::Logout`;
- the reconnect snapshot preserves transform, survival, care history, and
inventory through `UAgrarianPersistenceSubsystem::SavePlayerSnapshot`;
- reconnect/spawn restores the matching snapshot in
`AAgrarianGameGameMode::RestartPlayer` through
`UAgrarianPersistenceSubsystem::RestorePlayerSnapshot`;
- if no matching snapshot exists, the player uses the normal MVP spawn point;
- server should not crash or leak active interaction/build state when a player
disconnects mid-action.