Document player stats persistence
This commit is contained in:
@@ -409,6 +409,13 @@ identity block also records the display player name, raw network ID, whether
|
||||
the network ID was used, and the last known pawn name. It deliberately does not
|
||||
store passwords, tokens, emails, or platform credentials.
|
||||
|
||||
Player stats are stored through `FAgrarianSavedPlayer::Survival`, which captures
|
||||
the replicated `FAgrarianSurvivalSnapshot`. The MVP stat save includes health,
|
||||
stamina, exhaustion, hunger, thirst, body temperature, generic injury,
|
||||
bleeding, sprain, sickness, death state, and death reason. Loading applies the
|
||||
snapshot through `UAgrarianSurvivalComponent::ApplySavedState`, keeping clamping
|
||||
and replicated change notifications inside the survival component.
|
||||
|
||||
## Testing Gates
|
||||
|
||||
Minimum persistence smoke test:
|
||||
|
||||
Reference in New Issue
Block a user