public void AddCondition(AchievementCondition condition)
 {
     ConditionsCompletedTracker conditionsCompletedTracker = this;
     conditionsCompletedTracker._maxValue = conditionsCompletedTracker._maxValue + 1;
     condition.OnComplete += new AchievementCondition.AchievementUpdate(this.OnConditionCompleted);
     this._conditions.Add(condition);
 }
 public static AchievementCondition[] CreateMany(params short[] items)
 {
     AchievementCondition[] achievementConditionArray = new AchievementCondition[items.Length];
     for (int index = 0; index < items.Length; ++index)
         achievementConditionArray[index] = (AchievementCondition)new ItemPickupCondition(items[index]);
     return achievementConditionArray;
 }
Example #3
0
 public static AchievementCondition[] CreateMany(params short[] npcs)
 {
     AchievementCondition[] achievementConditionArray = new AchievementCondition[npcs.Length];
     for (int index = 0; index < npcs.Length; ++index)
         achievementConditionArray[index] = (AchievementCondition)new NPCKilledCondition(npcs[index]);
     return achievementConditionArray;
 }
Example #4
0
        public void AddCondition(AchievementCondition condition)
        {
            ConditionsCompletedTracker conditionsCompletedTracker = this;

            conditionsCompletedTracker._maxValue = conditionsCompletedTracker._maxValue + 1;
            condition.OnComplete += new AchievementCondition.AchievementUpdate(this.OnConditionCompleted);
            this._conditions.Add(condition);
        }
		public static AchievementCondition[] CreateMany(params short[] npcs)
		{
			AchievementCondition[] array = new AchievementCondition[npcs.Length];
			for (int i = 0; i < npcs.Length; i++)
			{
				array[i] = new NPCKilledCondition(npcs[i]);
			}
			return array;
		}
 public static AchievementCondition[] CreateMany(params short[] items)
 {
     AchievementCondition[] itemPickupCondition = new AchievementCondition[(int)items.Length];
     for (int i = 0; i < (int)items.Length; i++)
     {
         itemPickupCondition[i] = new ItemPickupCondition(items[i]);
     }
     return itemPickupCondition;
 }
		public static AchievementCondition[] CreateMany(params short[] items)
		{
			AchievementCondition[] array = new AchievementCondition[items.Length];
			for (int i = 0; i < items.Length; i++)
			{
				array[i] = new ItemPickupCondition(items[i]);
			}
			return array;
		}
 public static AchievementCondition[] CreateMany(params short[] npcs)
 {
     AchievementCondition[] nPCKilledCondition = new AchievementCondition[(int)npcs.Length];
     for (int i = 0; i < (int)npcs.Length; i++)
     {
         nPCKilledCondition[i] = new NPCKilledCondition(npcs[i]);
     }
     return nPCKilledCondition;
 }
Example #9
0
        private void OnConditionComplete(AchievementCondition condition)
        {
            Achievement achievement = this;

            achievement._completedCount = achievement._completedCount + 1;
            if (this._completedCount == this._conditions.Count)
            {
                if (this.OnCompleted != null)
                {
                    this.OnCompleted(this);
                }
            }
        }
Example #10
0
        private void OnConditionComplete(AchievementCondition condition)
        {
            ++_completedCount;
            if (_completedCount != _conditions.Count)
            {
                return;
            }

            if (OnCompleted != null)
            {
                OnCompleted(this);
            }
        }
Example #11
0
 // Token: 0x0600139E RID: 5022 RVA: 0x0041C0B4 File Offset: 0x0041A2B4
 private void OnConditionComplete(AchievementCondition condition)
 {
     this._completedCount++;
     if (this._completedCount == this._conditions.Count)
     {
         if (this._tracker == null && SocialAPI.Achievements != null)
         {
             SocialAPI.Achievements.CompleteAchievement(this.Name);
         }
         if (this.OnCompleted != null)
         {
             this.OnCompleted(this);
         }
     }
 }
Example #12
0
 private void OnConditionComplete(AchievementCondition condition)
 {
     ++this._completedCount;
     if (this._completedCount != this._conditions.Count)
     {
         return;
     }
     if (this._tracker == null && SocialAPI.Achievements != null)
     {
         SocialAPI.Achievements.CompleteAchievement(this.Name);
     }
     if (this.OnCompleted == null)
     {
         return;
     }
     this.OnCompleted(this);
 }
Example #13
0
 private void OnConditionComplete(AchievementCondition condition)
 {
     this._completedCount = this._completedCount + 1;
     if (this._completedCount != this._conditions.Count)
     {
         return;
     }
     if (this._tracker == null && SocialAPI.Achievements != null)
     {
         SocialAPI.Achievements.CompleteAchievement(this.Name);
     }
     // ISSUE: reference to a compiler-generated field
     if (this.OnCompleted == null)
     {
         return;
     }
     // ISSUE: reference to a compiler-generated field
     this.OnCompleted(this);
 }
 private void OnConditionCompleted(AchievementCondition condition)
 {
     SetValue(Math.Min(_value + 1, _maxValue), true);
 }
 public void AddCondition(AchievementCondition condition)
 {
     this._conditions[condition.Name] = condition;
     condition.OnComplete += new AchievementCondition.AchievementUpdate(this.OnConditionComplete);
 }
Example #16
0
 private void OnConditionCompleted(AchievementCondition condition)
 {
     SetValue(Math.Min(_value + 1, _maxValue), true);
 }
Example #17
0
        private void OnConditionComplete(AchievementCondition condition)
        {
            ++_completedCount;
            if (_completedCount != _conditions.Count)
                return;

            if (OnCompleted != null)
                OnCompleted(this);
        }
 private void OnConditionComplete(AchievementCondition condition)
 {
     Achievement achievement = this;
     achievement._completedCount = achievement._completedCount + 1;
     if (this._completedCount == this._conditions.Count)
     {
         if (this._tracker == null && SocialAPI.Achievements != null)
         {
             SocialAPI.Achievements.CompleteAchievement(this.Name);
         }
         if (this.OnCompleted != null)
         {
             this.OnCompleted(this);
         }
     }
 }
 public void AddCondition(AchievementCondition condition)
 {
     ++_maxValue;
     condition.OnComplete += new AchievementCondition.AchievementUpdate(OnConditionCompleted);
     _conditions.Add(condition);
 }
		public void AddCondition(AchievementCondition condition)
		{
			this._maxValue++;
			condition.OnComplete += new AchievementCondition.AchievementUpdate(this.OnConditionCompleted);
			this._conditions.Add(condition);
		}
Example #21
0
 public void AddCondition(AchievementCondition condition)
 {
     ++this._maxValue;
     condition.OnComplete += new AchievementCondition.AchievementUpdate(this.OnConditionCompleted);
     this._conditions.Add(condition);
 }
 private void OnConditionCompleted(AchievementCondition condition)
 {
     base.SetValue(Math.Min(this._value + 1, (int)this._maxValue), true);
 }
Example #23
0
 public void AddCondition(AchievementCondition condition)
 {
     this._conditions[condition.Name] = condition;
     condition.OnComplete            += new AchievementCondition.AchievementUpdate(this.OnConditionComplete);
 }
Example #24
0
 public void AddCondition(AchievementCondition condition)
 {
     ++_maxValue;
     condition.OnComplete += OnConditionCompleted;
     _conditions.Add(condition);
 }
Example #25
0
 public void AddCondition(AchievementCondition condition)
 {
     _conditions[condition.Name] = condition;
     condition.OnComplete       += OnConditionComplete;
 }
 private void OnConditionComplete(AchievementCondition condition)
 {
     Achievement achievement = this;
     achievement._completedCount = achievement._completedCount + 1;
     if (this._completedCount == this._conditions.Count)
     {
         if (this.OnCompleted != null)
         {
             this.OnCompleted(this);
         }
     }
 }
Example #27
0
 private void OnConditionCompleted(AchievementCondition condition)
 {
     base.SetValue(Math.Min(this._value + 1, (int)this._maxValue), true);
 }