supabase integration instead firebase
This commit is contained in:
14
src/network/supabase_client.h
Normal file
14
src/network/supabase_client.h
Normal file
@ -0,0 +1,14 @@
|
||||
#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);
|
||||
|
||||
} // namespace supabase
|
||||
Reference in New Issue
Block a user