Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CounterPayload.cs
Go to the documentation of this file.
3
5
6[EventData]
7internal sealed class CounterPayload : IEnumerable<KeyValuePair<string, object>>, IEnumerable
8{
9 public string Name { get; set; }
10
11 public string DisplayName { get; set; }
12
13 public double Mean { get; set; }
14
15 public double StandardDeviation { get; set; }
16
17 public int Count { get; set; }
18
19 public double Min { get; set; }
20
21 public double Max { get; set; }
22
23 public float IntervalSec { get; internal set; }
24
25 public string Series { get; set; }
26
27 public string CounterType { get; set; }
28
29 public string Metadata { get; set; }
30
31 public string DisplayUnits { get; set; }
32
34 {
35 get
36 {
37 yield return new KeyValuePair<string, object>("Name", Name);
38 yield return new KeyValuePair<string, object>("DisplayName", DisplayName);
39 yield return new KeyValuePair<string, object>("DisplayUnits", DisplayUnits);
40 yield return new KeyValuePair<string, object>("Mean", Mean);
41 yield return new KeyValuePair<string, object>("StandardDeviation", StandardDeviation);
42 yield return new KeyValuePair<string, object>("Count", Count);
43 yield return new KeyValuePair<string, object>("Min", Min);
44 yield return new KeyValuePair<string, object>("Max", Max);
45 yield return new KeyValuePair<string, object>("IntervalSec", IntervalSec);
46 yield return new KeyValuePair<string, object>("Series", $"Interval={IntervalSec}");
47 yield return new KeyValuePair<string, object>("CounterType", "Mean");
48 yield return new KeyValuePair<string, object>("Metadata", Metadata);
49 }
50 }
51
56
61}
IEnumerable< KeyValuePair< string, object > > ForEnumeration
IEnumerator< KeyValuePair< string, object > > GetEnumerator()
new IEnumerator< T > GetEnumerator()