fixed highscores

This commit is contained in:
2025-12-21 21:17:58 +01:00
parent 494f906435
commit fb82ac06d0
6 changed files with 281 additions and 10 deletions

View File

@ -10,6 +10,8 @@ public:
explicit ScoreManager(size_t maxScores = 12);
void load();
void save() const;
// Replace the in-memory scores (thread-safe caller should ensure non-blocking)
void replaceAll(const std::vector<ScoreEntry>& newScores);
// New optional `gameType` parameter will be sent as `game_type`.
// Allowed values: "classic", "versus", "cooperate", "challenge".
void submit(int score, int lines, int level, double timeSec, const std::string& name = "PLAYER", const std::string& gameType = "classic");