Пример #1
0
        public EditorAchievement(EGCAchievement _gcAchievementInfo)
        {
            // Set properties from info object
            Identifier       = _gcAchievementInfo.Identifier;
            PointsScored     = _gcAchievementInfo.PointsScored;
            Completed        = _gcAchievementInfo.Completed;
            LastReportedDate = _gcAchievementInfo.LastReportedDate;

            // Set global identifier
            GlobalIdentifier = GameServicesIDHandler.GetAchievementGID(Identifier);
        }
Пример #2
0
        public iOSAchievement(IDictionary _dataDict)
        {
            // Parse data dictionary values
            Identifier       = _dataDict.GetIfAvailable <string>(kIdentifierKey);
            Completed        = _dataDict.GetIfAvailable <bool>(kCompletedKey);
            LastReportedDate = _dataDict.GetIfAvailable <string>(kLastReportedDateKey).ToZuluFormatDateTimeLocal();

            SetPercentComplete(_dataDict.GetIfAvailable <double>(kPercentCompleteKey));

            // Set global identifier
            GlobalIdentifier = GameServicesIDHandler.GetAchievementGID(Identifier);
        }
Пример #3
0
        public iOSAchievementDescription(IDictionary _dataDict)
        {
            // Parse data dictionary values
            Identifier            = _dataDict.GetIfAvailable <string>(kIdentifierKey);
            Title                 = _dataDict.GetIfAvailable <string>(kTitleKey);
            UnachievedDescription = _dataDict.GetIfAvailable <string>(kUnachievedDescriptionKey);
            AchievedDescription   = _dataDict.GetIfAvailable <string>(kAchievedDescriptionKey);
            MaximumPoints         = _dataDict.GetIfAvailable <int>(kMaximumPointsKey);
            IsHidden              = _dataDict.GetIfAvailable <bool>(kHiddenKey);

            // Set global identifier
            GlobalIdentifier = GameServicesIDHandler.GetAchievementGID(Identifier);
        }
        public EditorAchievementDescription(EGCAchievementDescription _gcDescriptionInfo)
        {
            // Set properties from info object
            Identifier            = _gcDescriptionInfo.Identifier;
            Title                 = _gcDescriptionInfo.Title;
            UnachievedDescription = _gcDescriptionInfo.UnachievedDescription;
            AchievedDescription   = _gcDescriptionInfo.AchievedDescription;
            MaximumPoints         = _gcDescriptionInfo.MaximumPoints;
            IsHidden              = _gcDescriptionInfo.IsHidden;

            // Set global identifier
            GlobalIdentifier = GameServicesIDHandler.GetAchievementGID(Identifier);
        }
        internal void SetDetails(IDictionary _achievementData)
        {
            Identifier   = _achievementData.GetIfAvailable <string>(kIdentifier);
            PointsScored = _achievementData.GetIfAvailable <int>(kPointsScored);
            Completed    = _achievementData.GetIfAvailable <bool>(kCompleted);

            long _timeInMillis = _achievementData.GetIfAvailable <long>(kLastReportDate);

            LastReportedDate = _timeInMillis.ToDateTimeFromJavaTime();

            PointsScored = m_pointsScored;

            GlobalIdentifier = GameServicesIDHandler.GetAchievementGID(Identifier);
        }