Update Project

This commit is contained in:
2026-03-20 13:04:43 +02:00
parent 9b587e6cba
commit beae2dea89
2295 changed files with 251259 additions and 33 deletions
+22
View File
@@ -0,0 +1,22 @@
namespace FlappyBird.Core
{
/// <summary>
/// Contract for the score management service.
/// Matches the interface defined in AI_RULES.md.
/// </summary>
public interface IScoreManager
{
/// <summary>Current score for this session.</summary>
int CurrentScore { get; }
/// <summary>All-time high score (persisted via PlayerPrefs).</summary>
int HighScore { get; }
/// <summary>Adds <paramref name="points"/> to the current score.</summary>
void AddScore(int points);
/// <summary>Resets the current score to zero (call on game restart).</summary>
void ResetScore();
/// <summary>Fired whenever the current score changes. Passes the new score value.</summary>
event System.Action<int> OnScoreChanged;
/// <summary>Fired when a new high score is set. Passes the new high score value.</summary>
event System.Action<int> OnHighScoreBeaten;
}
}