terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
SelectionHolder.cs
Go to the documentation of this file.
1using System;
6using Terraria.IO;
7
9{
10 // Token: 0x0200066D RID: 1645
11 public abstract class SelectionHolder<TCycleType> where TCycleType : class, IConfigKeyHolder
12 {
13 // Token: 0x170006A6 RID: 1702
14 // (get) Token: 0x0600370F RID: 14095 RVA: 0x000021DB File Offset: 0x000003DB
15 // (set) Token: 0x06003710 RID: 14096 RVA: 0x00221064 File Offset: 0x0021F264
17 {
19 get
20 {
21 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
22 }
24 private set
25 {
26 }
27 }
28
29 // Token: 0x06003711 RID: 14097 RVA: 0x00221074 File Offset: 0x0021F274
31 {
32 }
33
34 // Token: 0x06003712 RID: 14098
35 protected abstract void Configuration_Save(Preferences obj);
36
37 // Token: 0x06003713 RID: 14099
38 protected abstract void Configuration_OnLoad(Preferences obj);
39
40 // Token: 0x06003714 RID: 14100 RVA: 0x00221088 File Offset: 0x0021F288
42 {
43 if (this.LoadedContent)
44 {
45 return;
46 }
47 }
48
49 // Token: 0x06003715 RID: 14101
51
52 // Token: 0x06003716 RID: 14102 RVA: 0x002210A0 File Offset: 0x0021F2A0
54 {
55 this.LoadedContent = true;
56 }
57
58 // Token: 0x06003717 RID: 14103 RVA: 0x002210B4 File Offset: 0x0021F2B4
59 public void CycleSelection()
60 {
61 this.Options = this;
63 if (this.ActiveSelection == null)
64 {
67 }
68 }
69
70 // Token: 0x06003718 RID: 14104 RVA: 0x002210E8 File Offset: 0x0021F2E8
75
76 // Token: 0x06003719 RID: 14105 RVA: 0x002210FC File Offset: 0x0021F2FC
77 private void SetActiveFrame(string frameName)
78 {
81 if (this == null)
82 {
84 }
85 }
86
87 // Token: 0x0600371A RID: 14106 RVA: 0x00221124 File Offset: 0x0021F324
88 private void SetActiveFrame(TCycleType frame)
89 {
91 }
92
93 // Token: 0x0600371B RID: 14107 RVA: 0x00221144 File Offset: 0x0021F344
94 protected SelectionHolder()
95 {
96 this.Options = this;
97 base..ctor();
98 }
99
100 // Token: 0x04007814 RID: 30740
102
103 // Token: 0x04007815 RID: 30741
104 protected TCycleType ActiveSelection;
105
106 // Token: 0x04007816 RID: 30742
107 protected string ActiveSelectionConfigKey;
108
109 // Token: 0x04007817 RID: 30743
110 protected bool LoadedContent;
111
112 // Token: 0x04007818 RID: 30744
114 private string <ActiveSelectionKeyName>k__BackingField;
115
116 // Token: 0x0200066E RID: 1646
118 private sealed class <>c__DisplayClass14_0
119 {
120 // Token: 0x0600371C RID: 14108 RVA: 0x00221160 File Offset: 0x0021F360
122 {
123 }
124
125 // Token: 0x0600371D RID: 14109 RVA: 0x00221174 File Offset: 0x0021F374
126 internal bool <CycleSelection>b__0(TCycleType frame)
127 {
128 TCycleType activeSelection = this.<>4__this.ActiveSelection;
129 this.lastFrame = frame;
130 return true;
131 }
132
133 // Token: 0x04007819 RID: 30745
135
136 // Token: 0x0400781A RID: 30746
137 public TCycleType lastFrame;
138 }
139
140 // Token: 0x0200066F RID: 1647
142 private sealed class <>c__DisplayClass16_0
143 {
144 // Token: 0x0600371E RID: 14110 RVA: 0x00221198 File Offset: 0x0021F398
146 {
147 }
148
149 // Token: 0x0600371F RID: 14111 RVA: 0x002211AC File Offset: 0x0021F3AC
151 {
152 string text = this.frameName;
153 bool flag;
154 return flag;
155 }
156
157 // Token: 0x0400781B RID: 30747
158 public string frameName;
159 }
160 }
161}
class f__AnonymousType0<< Count > j__TPar
void Wrapped_Configuration_OnLoad(Preferences obj)
string< ActiveSelectionKeyName > k__BackingField
void LoadContent(AssetRequestMode mode)
void Configuration_OnLoad(Preferences obj)
Dictionary< string, TCycleType > Options
void BindTo(Preferences preferences)
void PopulateOptionsAndLoadContent(AssetRequestMode mode)
void Configuration_Save(Preferences obj)