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 void UseConditionsCompletedTracker() { ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker(); foreach (KeyValuePair <string, AchievementCondition> _condition in this._conditions) { conditionsCompletedTracker.AddCondition(_condition.Value); } this.UseTracker(conditionsCompletedTracker); }
public void UseConditionsCompletedTracker(params string[] conditions) { ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker(); foreach (string key in conditions) { conditionsCompletedTracker.AddCondition(_conditions[key]); } UseTracker(conditionsCompletedTracker); }
public void UseConditionsCompletedTracker() { var completedTracker = new ConditionsCompletedTracker(); foreach (var condition in _conditions) { completedTracker.AddCondition(condition.Value); } UseTracker(completedTracker); }
public void UseConditionsCompletedTracker() { ConditionsCompletedTracker completedTracker = new ConditionsCompletedTracker(); foreach (KeyValuePair <string, AchievementCondition> keyValuePair in _conditions) { completedTracker.AddCondition(keyValuePair.Value); } UseTracker((IAchievementTracker)completedTracker); }
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); }
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); }
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; } } }
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); }
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); }
public void UseConditionsCompletedTracker() { ConditionsCompletedTracker conditionsCompletedTracker = new ConditionsCompletedTracker(); foreach (KeyValuePair<string, AchievementCondition> _condition in this._conditions) { conditionsCompletedTracker.AddCondition(_condition.Value); } this.UseTracker(conditionsCompletedTracker); }
public void UseConditionsCompletedTracker() { ConditionsCompletedTracker completedTracker = new ConditionsCompletedTracker(); foreach (KeyValuePair<string, AchievementCondition> keyValuePair in _conditions) completedTracker.AddCondition(keyValuePair.Value); UseTracker((IAchievementTracker)completedTracker); }