You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
1.3 KiB

  1. using System;
  2. using UnityEngine;
  3. namespace SUISS.Cloud
  4. {
  5. public interface ILeaderboardController
  6. {
  7. Leaderboard GetCountryLocal();
  8. Leaderboard GetCountryTop();
  9. Leaderboard GetGlobalLocal();
  10. Leaderboard GetGlobalTop();
  11. bool InCountryTop { get; }
  12. DateTime VotesResetAt { get; }
  13. int VotesLeft { get; }
  14. bool InGlobalTop { get; }
  15. int CountryRank { get; }
  16. int GlobalRank { get; }
  17. [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames for all login features.")]
  18. bool IsLoggedIn { get; }
  19. [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames for all login features.")]
  20. event Action LoginLostEvent;
  21. [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames to get access tokens.")]
  22. void LogOut();
  23. string SignRecord(IScoreRecord record, string leaderboardSecret);
  24. [Obsolete("No longer needed! Leaderboard Controller now uses IPlayernames to get access tokens.")]
  25. CloudRequest<LeaderboardErrors?> Login(string username, string password, string installUuid);
  26. CloudRequest<LeaderboardErrors?> Vote(string installUuid, bool upVote);
  27. CustomYieldInstruction UpdateScore(IScoreRecord record);
  28. CustomYieldInstruction UpdateLeaderboards();
  29. }
  30. }