refactor: enhance GameStateStore integration and improve skill management

This commit is contained in:
2026-03-19 02:33:07 +01:00
parent 3e36e48e97
commit eeefca4d4e
31 changed files with 260 additions and 419 deletions

View File

@@ -11,6 +11,11 @@ public class PlayerState
{
private const int DefaultLives = 3;
/// <summary>
/// The level index the player is currently on. Persisted across sessions.
/// </summary>
public int CurrentLevel { get; set; }
/// <summary>
/// Saved coins (not including current session).
/// </summary>
@@ -56,6 +61,7 @@ public class PlayerState
/// </summary>
public void Reset()
{
CurrentLevel = 0;
Coins = 0;
Lives = DefaultLives;
CompletedLevels.Clear();