Setup player preview for equipment panel

This commit is contained in:
2026-05-31 15:33:43 +03:00
parent e70b1d757c
commit f59fa8d948
42 changed files with 823 additions and 318 deletions
@@ -76,6 +76,15 @@ void USessionLossResolver::ResolveLoss(ESessionLossCause Cause)
OnSessionLossResolved.Broadcast(Cause, bWentToHoldingCell);
}
void USessionLossResolver::ResolveSleepLoss()
{
// §4.4: sleeping is the deterministic side of the theft model — everything left
// outside the apartment is lost, regardless of the in-session grace / roll state.
// No autosave here: the sleep flow persists once via UTimeOfDaySubsystem::Sleep(),
// which runs immediately after this. Callers must ensure a save follows.
LoseAllWorldClothing();
}
void USessionLossResolver::LoseAllWorldClothing()
{
UGlobalSaveGameData* Save = GetSave();