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
TileObjectPreviewData.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x0200067F RID: 1663
8 {
9 // Token: 0x06003777 RID: 14199 RVA: 0x00221B14 File Offset: 0x0021FD14
10 public void Reset()
11 {
12 if (!true)
13 {
14 }
15 if (this._data != null)
16 {
17 return;
18 }
19 }
20
21 // Token: 0x06003778 RID: 14200 RVA: 0x00221B30 File Offset: 0x0021FD30
23 {
24 ushort type = copy._type;
25 int[,] data = this._data;
26 this._type = type;
27 short style = copy._style;
28 this._style = style;
29 bool active = copy._active;
30 this._active = active;
31 float percentValid = copy._percentValid;
33 if (data != null)
34 {
35 long num = 0L;
36 int num2;
37 Array.Clear(data, (int)num, num2);
39 return;
40 }
41 Point16 dataSize2 = copy._dataSize;
43 short y = copy._dataSize.Y;
44 short y2 = this._dataSize.Y;
45 }
46
47 // Token: 0x170006AD RID: 1709
48 // (get) Token: 0x06003779 RID: 14201 RVA: 0x00221BE8 File Offset: 0x0021FDE8
49 // (set) Token: 0x0600377A RID: 14202 RVA: 0x00221BFC File Offset: 0x0021FDFC
50 public bool Active
51 {
52 get
53 {
54 return this._active;
55 }
56 set
57 {
58 }
59 }
60
61 // Token: 0x170006AE RID: 1710
62 // (get) Token: 0x0600377B RID: 14203 RVA: 0x00221C0C File Offset: 0x0021FE0C
63 // (set) Token: 0x0600377C RID: 14204 RVA: 0x00221C20 File Offset: 0x0021FE20
64 public ushort Type
65 {
66 get
67 {
68 return this._type;
69 }
70 set
71 {
73 }
74 }
75
76 // Token: 0x170006AF RID: 1711
77 // (get) Token: 0x0600377D RID: 14205 RVA: 0x00221C34 File Offset: 0x0021FE34
78 // (set) Token: 0x0600377E RID: 14206 RVA: 0x00221C48 File Offset: 0x0021FE48
79 public short Style
80 {
81 get
82 {
83 return this._style;
84 }
85 set
86 {
88 }
89 }
90
91 // Token: 0x170006B0 RID: 1712
92 // (get) Token: 0x0600377F RID: 14207 RVA: 0x00221C5C File Offset: 0x0021FE5C
93 // (set) Token: 0x06003780 RID: 14208 RVA: 0x00221C70 File Offset: 0x0021FE70
94 public int Alternate
95 {
96 get
97 {
98 return this._alternate;
99 }
100 set
101 {
103 }
104 }
105
106 // Token: 0x170006B1 RID: 1713
107 // (get) Token: 0x06003781 RID: 14209 RVA: 0x00221C84 File Offset: 0x0021FE84
108 // (set) Token: 0x06003782 RID: 14210 RVA: 0x00221C98 File Offset: 0x0021FE98
109 public int Random
110 {
111 get
112 {
113 return this._random;
114 }
115 set
116 {
118 }
119 }
120
121 // Token: 0x170006B2 RID: 1714
122 // (get) Token: 0x06003783 RID: 14211 RVA: 0x000021DB File Offset: 0x000003DB
123 // (set) Token: 0x06003784 RID: 14212 RVA: 0x00221CAC File Offset: 0x0021FEAC
125 {
126 get
127 {
128 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
129 }
130 set
131 {
132 if (this._data != null)
133 {
134 }
136 }
137 }
138
139 // Token: 0x170006B3 RID: 1715
140 // (get) Token: 0x06003785 RID: 14213 RVA: 0x000021DB File Offset: 0x000003DB
141 // (set) Token: 0x06003786 RID: 14214 RVA: 0x00221CD4 File Offset: 0x0021FED4
143 {
144 get
145 {
146 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
147 }
148 set
149 {
150 }
151 }
152
153 // Token: 0x170006B4 RID: 1716
154 // (get) Token: 0x06003787 RID: 14215 RVA: 0x000021DB File Offset: 0x000003DB
155 // (set) Token: 0x06003788 RID: 14216 RVA: 0x00221CE4 File Offset: 0x0021FEE4
157 {
158 get
159 {
160 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
161 }
162 set
163 {
164 }
165 }
166
167 // Token: 0x06003789 RID: 14217 RVA: 0x00221CF4 File Offset: 0x0021FEF4
168 public void AllInvalid()
169 {
170 int num = 2;
171 int[,] data = this._data;
172 data.m_value = num;
173 }
174
175 // Token: 0x170006B5 RID: 1717
176 public int this[int x, int y]
177 {
178 get
179 {
180 /*
181An exception occurred when decompiling this method (0600378A)
182
183ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.DataStructures.TileObjectPreviewData::get_Item(System.Int32,System.Int32)
184
185 ---> System.Exception: Basic block has to end with unconditional control flow.
186{
187 Block_0:
188 stloc:int32[, ](var_0_06, ldfld:int32[, ](TileObjectPreviewData::_data, ldloc:TileObjectPreviewData(this)))
189}
190
191 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
192 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
193 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
194 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
195 --- End of inner exception stack trace ---
196 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
197 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
198*/;
199 }
200 set
201 {
202 int[,] data = this._data;
203 }
204 }
205
206 // Token: 0x0600378C RID: 14220 RVA: 0x00221D40 File Offset: 0x0021FF40
208 {
209 }
210
211 // Token: 0x04007881 RID: 30849
212 private ushort _type;
213
214 // Token: 0x04007882 RID: 30850
215 private short _style;
216
217 // Token: 0x04007883 RID: 30851
218 private int _alternate;
219
220 // Token: 0x04007884 RID: 30852
221 private int _random;
222
223 // Token: 0x04007885 RID: 30853
224 private bool _active;
225
226 // Token: 0x04007886 RID: 30854
227 private Point16 _size;
228
229 // Token: 0x04007887 RID: 30855
231
232 // Token: 0x04007888 RID: 30856
234
235 // Token: 0x04007889 RID: 30857
236 private int[,] _data;
237
238 // Token: 0x0400788A RID: 30858
240
241 // Token: 0x0400788B RID: 30859
242 private float _percentValid;
243
244 // Token: 0x0400788C RID: 30860
246
247 // Token: 0x0400788D RID: 30861
249
250 // Token: 0x0400788E RID: 30862
251 public const int None = 0;
252
253 // Token: 0x0400788F RID: 30863
254 public const int ValidSpot = 1;
255
256 // Token: 0x04007890 RID: 30864
257 public const int InvalidSpot = 2;
258 }
259}
class f__AnonymousType0<< Count > j__TPar
void IList. Clear()
Definition Array.cs:99