public void GetCurrentPlayer(AN_PlayersClient client, Action <AN_LinkedObjectResult <AN_Player> > callback) { SA_Coroutine.WaitForSeconds(1, () => { var result = new AN_LinkedObjectResult <AN_Player>(new AN_Player()); callback.Invoke(result); }); }
public void Open(AN_SnapshotsClient client, string name, bool createIfNotFound, int conflictPolicy, Action <AN_LinkedObjectResult <AN_DataOrConflictResult> > callback) { SA_Coroutine.WaitForSeconds(1, () => { var result = new AN_LinkedObjectResult <AN_DataOrConflictResult>(new AN_DataOrConflictResult()); callback.Invoke(result); }); }
public void SubmitScoreImmediate(AN_LeaderboardsClient client, string leaderboardId, long score, string scoreTag, Action <AN_LinkedObjectResult <AN_ScoreSubmissionData> > callback) { SA_Coroutine.WaitForSeconds(1, () => { var result = new AN_LinkedObjectResult <AN_ScoreSubmissionData>(new AN_ScoreSubmissionData()); callback.Invoke(result); }); }
public void LoadTopScores(AN_LeaderboardsClient client, string leaderboardId, int span, int leaderboardCollection, int maxResults, bool forceReload, Action <AN_LinkedObjectResult <AN_LeaderboardScores> > callback) { SA_Coroutine.WaitForSeconds(1, () => { var result = new AN_LinkedObjectResult <AN_LeaderboardScores>(new AN_LeaderboardScores()); callback.Invoke(result); }); }
public void LoadMoreScores(AN_LeaderboardsClient client, AN_LeaderboardScoreBuffer buffer, int maxResults, int pageDirection, Action <AN_LinkedObjectResult <AN_LeaderboardScores> > callback) { SA_Coroutine.WaitForSeconds(1, () => { var result = new AN_LinkedObjectResult <AN_LeaderboardScores>(new AN_LeaderboardScores()); callback.Invoke(result); }); }
public void LoadCurrentPlayerLeaderboardScore(AN_LeaderboardsClient client, string leaderboardId, int span, int leaderboardCollection, Action <AN_LinkedObjectResult <AN_LeaderboardScore> > callback) { SA_Coroutine.WaitForSeconds(1, () => { var result = new AN_LinkedObjectResult <AN_LeaderboardScore>(new AN_LeaderboardScore()); callback.Invoke(result); }); }
public void ResolveConflict(AN_SnapshotsClient client, string conflictId, AN_Snapshot snapshot, Action <AN_LinkedObjectResult <AN_DataOrConflictResult> > callback) { SA_Coroutine.WaitForSeconds(1, () => { var result = new AN_LinkedObjectResult <AN_DataOrConflictResult>(new AN_DataOrConflictResult()); callback.Invoke(result); }); }
protected void PrintScoresResultData(AN_LinkedObjectResult <AN_LeaderboardScores> result) { var scores = result.Data; var buffer = scores.Scores; AN_Logger.Log("scores.Leaderboard.DisplayName: " + scores.Leaderboard.DisplayName); AN_Logger.Log("Loaded scores Count: " + buffer.Scores.Count); foreach (var score in buffer.Scores) { PrintScoreInfo(score); } }