refactor: SaveSystem now uses a DTO for player state serialization and PlayerDeathComponent delegates state changes to event handlers.

This commit is contained in:
2026-01-31 16:43:12 +01:00
parent 2fc988da27
commit 432a71a00c
2 changed files with 74 additions and 17 deletions

View File

@@ -32,7 +32,7 @@ public partial class PlayerDeathComponent : Node2D
effect.Scale = EffectScale;
}
_gameManager.RemoveLives(1);
_gameManager.ResetCurrentSessionState();
// Lives are now decremented by LivesStateHandler via PlayerDied event
// Session state is reset by LivesStateHandler as well
}
}