using System; using UnityEngine; namespace SUISS.Cloud { public interface ILeaderboardController { Leaderboard GetCountryLocal(); Leaderboard GetCountryTop(); Leaderboard GetGlobalLocal(); Leaderboard GetGlobalTop(); bool InCountryTop { get; } DateTime VotesResetAt { get; } int VotesLeft { get; } bool InGlobalTop { get; } int CountryRank { get; } int GlobalRank { get; } [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames for all login features.")] bool IsLoggedIn { get; } [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames for all login features.")] event Action LoginLostEvent; [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames to get access tokens.")] void LogOut(); string SignRecord(IScoreRecord record, string leaderboardSecret); [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames to get access tokens.")] CloudRequest Login(string username, string password, string installUuid); CloudRequest Vote(string installUuid, bool upVote); CustomYieldInstruction UpdateScore(IScoreRecord record); CustomYieldInstruction UpdateLeaderboards(); } }