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