Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
WorkshopProgressReporter.cs
Go to the documentation of this file.
3
5
7{
9
10 public override bool HasOngoingTasks => _publisherInstances.Count > 0;
11
16
17 public override bool TryGetProgress(out float progress)
18 {
19 float num = 0f;
20 float num2 = 0f;
21 for (int i = 0; i < _publisherInstances.Count; i++)
22 {
24 {
25 num += progress2;
26 num2 += 1f;
27 }
28 }
29 progress = 0f;
30 if (num2 == 0f)
31 {
32 return false;
33 }
34 progress = num / num2;
35 return true;
36 }
37}
List< WorkshopHelper.UGCBased.APublisherInstance > _publisherInstances
WorkshopProgressReporter(List< WorkshopHelper.UGCBased.APublisherInstance > publisherInstances)