18 lines
502 B
C++
18 lines
502 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../persistence/Scores.h"
|
|
|
|
namespace supabase {
|
|
|
|
// Submit a highscore asynchronously (detached thread)
|
|
void SubmitHighscoreAsync(const ScoreEntry &entry);
|
|
|
|
// Fetch highscores for a game type. If gameType is empty, fetch all (limited).
|
|
std::vector<ScoreEntry> FetchHighscores(const std::string &gameType, int limit);
|
|
|
|
// Enable or disable verbose logging to stderr. Disabled by default.
|
|
void SetVerbose(bool enabled);
|
|
|
|
} // namespace supabase
|