Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ConditionsCompletedTracker.cs
Go to the documentation of this file.
1using System;
3
5
7{
9
10 public void AddCondition(AchievementCondition condition)
11 {
12 _maxValue++;
13 condition.OnComplete += OnConditionCompleted;
14 _conditions.Add(condition);
15 }
16
18 {
20 }
21
22 protected override void Load()
23 {
24 for (int i = 0; i < _conditions.Count; i++)
25 {
26 if (_conditions[i].IsCompleted)
27 {
28 _value++;
29 }
30 }
31 }
32}
void Add(TKey key, TValue value)
static byte Min(byte val1, byte val2)
Definition Math.cs:912
void SetValue(T newValue, bool reportUpdate=true)
void OnConditionCompleted(AchievementCondition condition)