示例#1
0
 public void updateAchievementFailed(string json)
 {
     AGSClient.Log("AGSAchievementsClient - UpdateAchievementFailed");
     AGSAchievementsClient.UpdateAchievementFailed(json);
 }
示例#2
0
 public void requestLocalPlayerScoreSucceeded(string json)
 {
     AGSClient.Log("AGSLeaderboardsClient - RequestLocalPlayerScoreSucceeded");
     AGSLeaderboardsClient.RequestLocalPlayerScoreSucceeded(json);
 }
示例#3
0
 public void requestScoresFailed(string json)
 {
     AGSClient.Log("AGSLeaderboardsClient - RequestScoresFailed");
     AGSLeaderboardsClient.RequestScoresFailed(json);
 }
示例#4
0
 public void localPlayerFriendRequestComplete(string json)
 {
     AGSClient.Log("AGSPlayerClient - LocalPlayerFriendsComplete");
     AGSPlayerClient.LocalPlayerFriendsComplete(json);
 }
示例#5
0
 public void onSignedInStateChange(string isSignedIn)
 {
     AGSClient.Log("AGSPlayerClient - OnSignedInStateChanged");
     AGSPlayerClient.OnSignedInStateChanged(bool.Parse(isSignedIn));
 }
    /// <summary>
    /// creates object from hashtable
    /// </summary>
    /// <returns>
    /// The hashtable.
    /// </returns>
    /// <param name='ht'>
    /// Ht.
    /// </param>
    public static AGSAchievement fromHashtable(Hashtable ht)
    {
        var achievement = new AGSAchievement();

        achievement.title      = getStringValue(ht, "title");
        achievement.id         = getStringValue(ht, "id");
        achievement.decription = getStringValue(ht, "description");
        try{
            string str = getStringValue(ht, "pointValue");
            achievement.pointValue = int.Parse(str);
        }catch (FormatException e) {
            AGSClient.Log("Unable to parse pointValue from achievement " + e.Message);
        }catch (ArgumentNullException e) {
            AGSClient.Log("pointValue not found  " + e.Message);
        }

        try{
            string str = getStringValue(ht, "position");
            achievement.position = int.Parse(str);
        }catch (FormatException e) {
            AGSClient.Log("Unable to parse position from achievement " + e.Message);
        }catch (ArgumentNullException e) {
            AGSClient.Log("position not found " + e.Message);
        }

        try{
            string str = getStringValue(ht, "progress");
            achievement.progress = float.Parse(str);
        }catch (FormatException e) {
            AGSClient.Log("Unable to parse progress from achievement " + e.Message);
        }catch (ArgumentNullException e) {
            AGSClient.Log("progress not found " + e.Message);
        }

        try{
            string str = getStringValue(ht, "hidden");
            achievement.isHidden = bool.Parse(str);
        }catch (FormatException e) {
            AGSClient.Log("Unable to parse isHidden from achievement " + e.Message);
        }catch (ArgumentNullException e) {
            AGSClient.Log("isHidden not found " + e.Message);
        }

        try{
            string str = getStringValue(ht, "unlocked");
            achievement.isUnlocked = bool.Parse(str);
        }catch (FormatException e) {
            AGSClient.Log("Unable to parse isUnlocked from achievement " + e.Message);
        }catch (ArgumentNullException e) {
            AGSClient.Log("isUnlocked not found " + e.Message);
        }

        try{
            string str             = getStringValue(ht, "dateUnlocked");
            long   epochTimeMillis = long.Parse(str);
            achievement.dateUnlocked = getTimefromEpochTime(epochTimeMillis);
        }catch (FormatException e) {
            AGSClient.Log("Unable to parse dateUnlocked from achievement " + e.Message);
        }catch (ArgumentNullException e) {
            AGSClient.Log("dateUnlocked not found " + e.Message);
        }

        return(achievement);
    }
示例#7
0
 public void serviceNotReady(string param)
 {
     AGSClient.Log("AGSClient - ServiceNotReady");
     AGSClient.ServiceNotReady(param);
 }
示例#8
0
 public void onDiskWriteComplete(string empty)
 {
     AGSClient.Log("AGSWhispersyncClient - OnDiskWriteComplete");
     AGSWhispersyncClient.OnDiskWriteComplete();
 }
示例#9
0
 public void onAlreadySynchronized(string empty)
 {
     AGSClient.Log("AGSWhispersyncClient - OnAlreadySynchronized");
     AGSWhispersyncClient.OnAlreadySynchronized();
 }
示例#10
0
 public void onDataUploadedToCloud(string empty)
 {
     AGSClient.Log("AGSWhispersyncClient - OnDataUploadedToCloud");
     AGSWhispersyncClient.OnDataUploadedToCloud();
 }
示例#11
0
 public void onThrottled(string empty)
 {
     AGSClient.Log("AGSWhispersyncClient - OnThrottled");
     AGSWhispersyncClient.OnThrottled();
 }
示例#12
0
 // ReSharper disable UnusedParameter.Global
 public void onNewCloudData(string empty)
 {
     AGSClient.Log("AGSWhispersyncClient - OnNewCloudData");
     AGSWhispersyncClient.OnNewCloudData();
 }
示例#13
0
 public void requestAchievementsForPlayerCompleted(string json)
 {
     AGSClient.Log("AGSAchievementsClient - RequestAchievementsForPlayerComplete");
     AGSAchievementsClient.RequestAchievementsForPlayerComplete(json);
 }
示例#14
0
 public void requestAchievementsFailed(string json)
 {
     AGSClient.Log("AGSAchievementsClient - RequestAchievementsFailed");
     AGSAchievementsClient.RequestAchievementsFailed(json);
 }
示例#15
0
 public void requestLeaderboardsSucceeded(string json)
 {
     AGSClient.Log("GameCircleManager - requestLeaderboardsSucceeded");
     AGSLeaderboardsClient.
     RequestLeaderboardsSucceeded(json);
 }
示例#16
0
 public void onSyncFailed(string failReason)
 {
     AGSClient.Log("AGSWhispersyncClient - OnSyncFailed");
     AGSWhispersyncClient.OnSyncFailed(failReason);
 }
示例#17
0
 public void requestLocalPlayerScoreFailed(string json)
 {
     AGSClient.Log("GameCircleManager - requestLocalPlayerScoreFailed");
     AGSLeaderboardsClient.
     RequestLocalPlayerScoreFailed(json);
 }
示例#18
0
 public void requestPercentileRanksFailed(string json)
 {
     AGSClient.Log("GameCircleManager - requestPercentileRanksFailed");
     AGSLeaderboardsClient.RequestPercentileRanksFailed(json);
 }
示例#19
0
        /* --------------------------------------------------------------------------------------
         * Do NOT rename these functions, the correct naming convention for these is sampleName!
         * They are called by external code that depend on this specific naming!
         * --------------------------------------------------------------------------------------
         */

        public void serviceReady(string empty)
        {
            AGSClient.Log("AGSClient - ServiceReady");
            firstInitializedFinished = true;
            AGSClient.ServiceReady(empty);
        }
示例#20
0
 public void updateAchievementFailed(string json)
 {
     AGSClient.Log("GameCircleManager - updateAchievementsFailed");
     AGSAchievementsClient.
     UpdateAchievementFailed(json);
 }
示例#21
0
 public void playerFailed(string json)
 {
     AGSClient.Log("AGSPlayerClient - PlayerFailed");
     AGSPlayerClient.PlayerFailed(json);
 }
示例#22
0
 public void requestAchievementsFailed(string json)
 {
     AGSClient.Log("GameCircleManager -  requestAchievementsFailed");
     AGSAchievementsClient.
     RequestAchievementsFailed(json);
 }
示例#23
0
 public void batchFriendsRequestComplete(string json)
 {
     AGSClient.Log("AGSPlayerClient - BatchFriendsRequestComplete");
     AGSPlayerClient.BatchFriendsRequestComplete(json);
 }
示例#24
0
 public void playerFailed(string json)
 {
     AGSClient.Log("GameCircleManager - playerFailed");
     AGSPlayerClient.
     PlayerFailed(json);
 }
示例#25
0
 public void submitScoreSucceeded(string json)
 {
     AGSClient.Log("AGSLeaderboardsClient - SubmitScoreSucceeded");
     AGSLeaderboardsClient.SubmitScoreSucceeded(json);
 }
示例#26
0
 public void onSignedInStateChange(string isSignedIn)
 {
     AGSClient.Log("GameCircleManager - onSignedInStateChange");
     AGSPlayerClient.OnSignedInStateChanged(Boolean.Parse(isSignedIn));
 }
示例#27
0
 public void requestPlayerScoreCompleted(string json)
 {
     AGSClient.Log("AGSLeaderboardsClient - RequestScoreForPlayerComplete");
     AGSLeaderboardsClient.RequestScoreForPlayerComplete(json);
 }
示例#28
0
 public void submitScoreSucceeded(string json)
 {
     AGSClient.Log("GameCircleManager - submitScoreSucceeded");
     AGSLeaderboardsClient.
     SubmitScoreSucceeded(json);
 }
示例#29
0
 public void requestPercentileRanksFailed(string json)
 {
     AGSClient.Log("AGSLeaderboardsClient - RequestPercentileRanksFailed");
     AGSLeaderboardsClient.RequestPercentileRanksFailed(json);
 }
示例#30
0
 public void requestPercentileRanksForPlayerSucceeded(string json)
 {
     AGSClient.Log("AGSLeaderboardsClient - RequestPercentileRanksForPlayerComplete");
     AGSLeaderboardsClient.RequestPercentileRanksForPlayerComplete(json);
 }