상속: ConditionIntTracker
예제 #1
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);
        }
예제 #2
0
        public void UseConditionsCompletedTracker()
        {
            ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker();

            foreach (KeyValuePair <string, AchievementCondition> _condition in this._conditions)
            {
                conditionsCompletedTracker.AddCondition(_condition.Value);
            }
            this.UseTracker(conditionsCompletedTracker);
        }
예제 #3
0
        public void UseConditionsCompletedTracker(params string[] conditions)
        {
            ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker();

            foreach (string key in conditions)
            {
                conditionsCompletedTracker.AddCondition(_conditions[key]);
            }
            UseTracker(conditionsCompletedTracker);
        }
예제 #4
0
        public void UseConditionsCompletedTracker()
        {
            var completedTracker = new ConditionsCompletedTracker();

            foreach (var condition in _conditions)
            {
                completedTracker.AddCondition(condition.Value);
            }
            UseTracker(completedTracker);
        }
예제 #5
0
        public void UseConditionsCompletedTracker()
        {
            ConditionsCompletedTracker completedTracker = new ConditionsCompletedTracker();

            foreach (KeyValuePair <string, AchievementCondition> keyValuePair in _conditions)
            {
                completedTracker.AddCondition(keyValuePair.Value);
            }
            UseTracker((IAchievementTracker)completedTracker);
        }
예제 #6
0
        public void UseConditionsCompletedTracker(params string[] conditions)
        {
            ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker();

            for (int i = 0; i < (int)conditions.Length; i++)
            {
                string str = conditions[i];
                conditionsCompletedTracker.AddCondition(this._conditions[str]);
            }
            this.UseTracker(conditionsCompletedTracker);
        }
예제 #7
0
        public void UseConditionsCompletedTracker(params string[] conditions)
        {
            ConditionsCompletedTracker completedTracker = new ConditionsCompletedTracker();

            for (int index = 0; index < conditions.Length; ++index)
            {
                string condition = conditions[index];
                completedTracker.AddCondition(this._conditions[condition]);
            }
            this.UseTracker((IAchievementTracker)completedTracker);
        }
예제 #8
0
 protected override void Load()
 {
     for (int i = 0; i < this._conditions.Count; i++)
     {
         if (this._conditions[i].IsCompleted)
         {
             ConditionsCompletedTracker conditionsCompletedTracker = this;
             conditionsCompletedTracker._value = conditionsCompletedTracker._value + 1;
         }
     }
 }
예제 #9
0
        public void UseConditionsCompletedTracker(params string[] conditions)
        {
            ConditionsCompletedTracker completedTracker = new ConditionsCompletedTracker();

            for (int index1 = 0; index1 < conditions.Length; ++index1)
            {
                string index2 = conditions[index1];
                completedTracker.AddCondition(_conditions[index2]);
            }
            UseTracker((IAchievementTracker)completedTracker);
        }
예제 #10
0
        public void UseConditionsCompletedTracker(params string[] conditions)
        {
            var completedTracker = new ConditionsCompletedTracker();

            for (var index = 0; index < conditions.Length; ++index)
            {
                var condition = conditions[index];
                completedTracker.AddCondition(_conditions[condition]);
            }

            UseTracker(completedTracker);
        }
예제 #11
0
 public void UseConditionsCompletedTracker(params string[] conditions)
 {
     ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker();
     for (int i = 0; i < (int)conditions.Length; i++)
     {
         string str = conditions[i];
         conditionsCompletedTracker.AddCondition(this._conditions[str]);
     }
     this.UseTracker(conditionsCompletedTracker);
 }
예제 #12
0
 public void UseConditionsCompletedTracker()
 {
     ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker();
     foreach (KeyValuePair<string, AchievementCondition> _condition in this._conditions)
     {
         conditionsCompletedTracker.AddCondition(_condition.Value);
     }
     this.UseTracker(conditionsCompletedTracker);
 }
예제 #13
0
 public void UseConditionsCompletedTracker(params string[] conditions)
 {
     ConditionsCompletedTracker completedTracker = new ConditionsCompletedTracker();
     for (int index1 = 0; index1 < conditions.Length; ++index1)
     {
         string index2 = conditions[index1];
         completedTracker.AddCondition(_conditions[index2]);
     }
     UseTracker((IAchievementTracker)completedTracker);
 }
예제 #14
0
 public void UseConditionsCompletedTracker()
 {
     ConditionsCompletedTracker completedTracker = new ConditionsCompletedTracker();
     foreach (KeyValuePair<string, AchievementCondition> keyValuePair in _conditions)
         completedTracker.AddCondition(keyValuePair.Value);
     UseTracker((IAchievementTracker)completedTracker);
 }