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
PlayerInput.cs
Go to the documentation of this file.
1using System;
4using System.Text;
9using Terraria.IO;
10
11namespace Terraria.GameInput
12{
13 // Token: 0x020006C5 RID: 1733
14 public class PlayerInput
15 {
16 // Token: 0x170006EF RID: 1775
17 // (get) Token: 0x06003979 RID: 14713 RVA: 0x000021DB File Offset: 0x000003DB
18 // (set) Token: 0x0600397A RID: 14714 RVA: 0x0022DEE8 File Offset: 0x0022C0E8
19 public static TriggersPack Triggers
20 {
21 get
22 {
23 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
24 }
25 set
26 {
27 }
28 }
29
30 // Token: 0x170006F0 RID: 1776
31 // (get) Token: 0x0600397B RID: 14715 RVA: 0x000021DB File Offset: 0x000003DB
32 // (set) Token: 0x0600397C RID: 14716 RVA: 0x0022DEF8 File Offset: 0x0022C0F8
33 public static MouseState MouseInfo
34 {
35 get
36 {
37 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
38 }
39 set
40 {
41 int horizontalScrollWheelValue = value._horizontalScrollWheelValue;
42 int x = value._x;
43 int y = value._y;
44 }
45 }
46
47 // Token: 0x170006F1 RID: 1777
48 // (get) Token: 0x0600397D RID: 14717 RVA: 0x000021DB File Offset: 0x000003DB
49 // (set) Token: 0x0600397E RID: 14718 RVA: 0x0022DF1C File Offset: 0x0022C11C
51 {
52 get
53 {
54 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
55 }
56 set
57 {
58 int horizontalScrollWheelValue = value._horizontalScrollWheelValue;
59 int x = value._x;
60 int y = value._y;
61 }
62 }
63
64 // Token: 0x170006F2 RID: 1778
65 // (get) Token: 0x0600397F RID: 14719 RVA: 0x000021DB File Offset: 0x000003DB
66 // (set) Token: 0x06003980 RID: 14720 RVA: 0x0022DF40 File Offset: 0x0022C140
67 public static int MouseX
68 {
69 get
70 {
71 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
72 }
73 set
74 {
75 }
76 }
77
78 // Token: 0x170006F3 RID: 1779
79 // (get) Token: 0x06003981 RID: 14721 RVA: 0x000021DB File Offset: 0x000003DB
80 // (set) Token: 0x06003982 RID: 14722 RVA: 0x0022DF50 File Offset: 0x0022C150
81 public static int MouseY
82 {
83 get
84 {
85 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
86 }
87 set
88 {
89 }
90 }
91
92 // Token: 0x170006F4 RID: 1780
93 // (get) Token: 0x06003983 RID: 14723 RVA: 0x000021DB File Offset: 0x000003DB
94 // (set) Token: 0x06003984 RID: 14724 RVA: 0x0022DF60 File Offset: 0x0022C160
95 public static bool LockGamepadTileUseButton
96 {
97 get
98 {
99 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
100 }
101 set
102 {
103 }
104 }
105
106 // Token: 0x170006F5 RID: 1781
107 // (get) Token: 0x06003985 RID: 14725 RVA: 0x000021DB File Offset: 0x000003DB
108 // (set) Token: 0x06003986 RID: 14726 RVA: 0x0022DF70 File Offset: 0x0022C170
109 public static int PreUIX
110 {
111 get
112 {
113 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
114 }
115 set
116 {
117 }
118 }
119
120 // Token: 0x170006F6 RID: 1782
121 // (get) Token: 0x06003987 RID: 14727 RVA: 0x000021DB File Offset: 0x000003DB
122 // (set) Token: 0x06003988 RID: 14728 RVA: 0x0022DF80 File Offset: 0x0022C180
123 public static int PreUIY
124 {
125 get
126 {
127 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
128 }
129 set
130 {
131 }
132 }
133
134 // Token: 0x170006F7 RID: 1783
135 // (get) Token: 0x06003989 RID: 14729 RVA: 0x000021DB File Offset: 0x000003DB
136 // (set) Token: 0x0600398A RID: 14730 RVA: 0x0022DF90 File Offset: 0x0022C190
137 public static int PreLockOnX
138 {
139 get
140 {
141 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
142 }
143 set
144 {
145 }
146 }
147
148 // Token: 0x170006F8 RID: 1784
149 // (get) Token: 0x0600398B RID: 14731 RVA: 0x000021DB File Offset: 0x000003DB
150 // (set) Token: 0x0600398C RID: 14732 RVA: 0x0022DFA0 File Offset: 0x0022C1A0
151 public static int PreLockOnY
152 {
153 get
154 {
155 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
156 }
157 set
158 {
159 }
160 }
161
162 // Token: 0x170006F9 RID: 1785
163 // (get) Token: 0x0600398D RID: 14733 RVA: 0x000021DB File Offset: 0x000003DB
164 // (set) Token: 0x0600398E RID: 14734 RVA: 0x0022DFB0 File Offset: 0x0022C1B0
165 public static int ScrollWheelValue
166 {
167 get
168 {
169 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
170 }
171 set
172 {
173 }
174 }
175
176 // Token: 0x170006FA RID: 1786
177 // (get) Token: 0x0600398F RID: 14735 RVA: 0x000021DB File Offset: 0x000003DB
178 // (set) Token: 0x06003990 RID: 14736 RVA: 0x0022DFC0 File Offset: 0x0022C1C0
179 public static int ScrollWheelValueOld
180 {
181 get
182 {
183 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
184 }
185 set
186 {
187 }
188 }
189
190 // Token: 0x170006FB RID: 1787
191 // (get) Token: 0x06003991 RID: 14737 RVA: 0x000021DB File Offset: 0x000003DB
192 // (set) Token: 0x06003992 RID: 14738 RVA: 0x0022DFD0 File Offset: 0x0022C1D0
193 public static int ScrollWheelDelta
194 {
195 get
196 {
197 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
198 }
199 set
200 {
201 }
202 }
203
204 // Token: 0x14000044 RID: 68
205 // (add) Token: 0x06003993 RID: 14739 RVA: 0x0022DFE0 File Offset: 0x0022C1E0
206 // (remove) Token: 0x06003994 RID: 14740 RVA: 0x0022DFFC File Offset: 0x0022C1FC
207 public static event Action OnBindingChange
208 {
210 add
211 {
212 if (!true)
213 {
214 }
216 if (@delegate != null)
217 {
218 }
219 }
221 remove
222 {
223 if (!true)
224 {
225 }
227 if (@delegate != null)
228 {
229 }
230 }
231 }
232
233 // Token: 0x14000045 RID: 69
234 // (add) Token: 0x06003995 RID: 14741 RVA: 0x0022E018 File Offset: 0x0022C218
235 // (remove) Token: 0x06003996 RID: 14742 RVA: 0x0022E034 File Offset: 0x0022C234
236 public static event Action OnActionableInput
237 {
239 add
240 {
241 if (!true)
242 {
243 }
245 if (@delegate != null)
246 {
247 }
248 }
250 remove
251 {
252 if (!true)
253 {
254 }
256 if (@delegate != null)
257 {
258 }
259 }
260 }
261
262 // Token: 0x06003997 RID: 14743 RVA: 0x0022E050 File Offset: 0x0022C250
263 public static void ListenFor(string triggerName, InputMode inputmode)
264 {
265 if (!true)
266 {
267 }
268 }
269
270 // Token: 0x170006FC RID: 1788
271 // (get) Token: 0x06003998 RID: 14744 RVA: 0x0022E060 File Offset: 0x0022C260
272 public static string ListeningTrigger
273 {
274 get
275 {
276 /*
277An exception occurred when decompiling this method (06003998)
278
279ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Terraria.GameInput.PlayerInput::get_ListeningTrigger()
280
281 ---> System.Exception: Basic block has to end with unconditional control flow.
282{
283 IL_0000:
284 brtrue(IL_0000, ldc.i4:bool(1))
285}
286
287 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
288 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
289 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
290 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
291 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
292 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
293 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
294 --- End of inner exception stack trace ---
295 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
296 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
297*/;
298 }
299 }
300
301 // Token: 0x170006FD RID: 1789
302 // (get) Token: 0x06003999 RID: 14745 RVA: 0x0022E070 File Offset: 0x0022C270
303 public static bool CurrentlyRebinding
304 {
305 get
306 {
307 /*
308An exception occurred when decompiling this method (06003999)
309
310ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput::get_CurrentlyRebinding()
311
312 ---> System.Exception: Basic block has to end with unconditional control flow.
313{
314 IL_0000:
315 brtrue(IL_0000, ldc.i4:bool(1))
316}
317
318 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
319 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
320 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
321 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
322 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
323 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
324 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
325 --- End of inner exception stack trace ---
326 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
327 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
328*/;
329 }
330 }
331
332 // Token: 0x170006FE RID: 1790
333 // (get) Token: 0x0600399A RID: 14746 RVA: 0x0022E080 File Offset: 0x0022C280
334 public static bool InvisibleGamepadInMenus
335 {
336 get
337 {
338 int num = 1;
339 if (num == 0)
340 {
341 }
342 bool gameMenu = Main.gameMenu;
343 if (num == 0)
344 {
345 }
346 bool ingameOptionsWindow = Main.ingameOptionsWindow;
347 if (num == 0)
348 {
349 }
350 bool playerInventory = Main.playerInventory;
351 if (num == 0)
352 {
353 }
354 int myPlayer = Main.myPlayer;
355 if (num == 0)
356 {
357 }
358 int myPlayer2 = Main.myPlayer;
359 if (num == 0)
360 {
361 }
362 if (num == 0)
363 {
364 }
365 if (num != 0)
366 {
367 if (num == 0)
368 {
369 }
371 if (num == 0)
372 {
373 }
374 }
375 if (num == 0)
376 {
377 }
378 while (num == 0)
379 {
380 }
381 }
382 }
383
384 // Token: 0x170006FF RID: 1791
385 // (get) Token: 0x0600399B RID: 14747 RVA: 0x0022E0F0 File Offset: 0x0022C2F0
387 {
388 get
389 {
390 /*
391An exception occurred when decompiling this method (0600399B)
392
393ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameInput.PlayerInputProfile Terraria.GameInput.PlayerInput::get_CurrentProfile()
394
395 ---> System.Exception: Basic block has to end with unconditional control flow.
396{
397 IL_0000:
398 brtrue(IL_0000, ldc.i4:bool(1))
399}
400
401 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
402 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
403 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
404 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
405 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
406 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
407 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
408 --- End of inner exception stack trace ---
409 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
410 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
411*/;
412 }
413 }
414
415 // Token: 0x17000700 RID: 1792
416 // (get) Token: 0x0600399C RID: 14748 RVA: 0x0022E100 File Offset: 0x0022C300
418 {
419 get
420 {
421 /*
422An exception occurred when decompiling this method (0600399C)
423
424ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameInput.KeyConfiguration Terraria.GameInput.PlayerInput::get_ProfileGamepadUI()
425
426 ---> System.Exception: Basic block has to end with unconditional control flow.
427{
428 IL_0003:
429 brtrue(IL_0000, ldc.i4:bool(1))
430}
431
432 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
433 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
434 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
435 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
436 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
437 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
438 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
439 --- End of inner exception stack trace ---
440 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
441 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
442*/;
443 }
444 }
445
446 // Token: 0x17000701 RID: 1793
447 // (get) Token: 0x0600399D RID: 14749 RVA: 0x0022E114 File Offset: 0x0022C314
448 public static bool UsingGamepad
449 {
450 get
451 {
452 if (!true)
453 {
454 }
455 return true;
456 }
457 }
458
459 // Token: 0x17000702 RID: 1794
460 // (get) Token: 0x0600399E RID: 14750 RVA: 0x0022E128 File Offset: 0x0022C328
461 public static bool UsingGamepadUI
462 {
463 get
464 {
465 /*
466An exception occurred when decompiling this method (0600399E)
467
468ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput::get_UsingGamepadUI()
469
470 ---> System.Exception: Basic block has to end with unconditional control flow.
471{
472 IL_0000:
473 brtrue(IL_0000, ldc.i4:bool(1))
474}
475
476 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
477 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
478 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
479 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
480 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
481 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
482 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
483 --- End of inner exception stack trace ---
484 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
485 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
486*/;
487 }
488 }
489
490 // Token: 0x17000703 RID: 1795
491 // (get) Token: 0x0600399F RID: 14751 RVA: 0x0022E138 File Offset: 0x0022C338
492 public static bool IgnoreMouseInterface
493 {
494 get
495 {
496 if (!true)
497 {
498 }
499 int itemAnimation = Main.LocalPlayer.itemAnimation;
501 }
502 }
503
504 // Token: 0x17000704 RID: 1796
505 // (get) Token: 0x060039A0 RID: 14752 RVA: 0x0022E160 File Offset: 0x0022C360
506 public static bool SteamDeckIsUsed
507 {
508 get
509 {
510 /*
511An exception occurred when decompiling this method (060039A0)
512
513ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput::get_SteamDeckIsUsed()
514
515 ---> System.Exception: Basic block has to end with unconditional control flow.
516{
517 IL_0000:
518 brtrue(IL_0000, ldc.i4:bool(1))
519}
520
521 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
522 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
523 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
524 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
525 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
526 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
527 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
528 --- End of inner exception stack trace ---
529 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
530 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
531*/;
532 }
533 }
534
535 // Token: 0x060039A1 RID: 14753 RVA: 0x0022E170 File Offset: 0x0022C370
536 private static bool InvalidateKeyboardSwap()
537 {
538 /*
539An exception occurred when decompiling this method (060039A1)
540
541ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput::InvalidateKeyboardSwap()
542
543 ---> System.Exception: Basic block has to end with unconditional control flow.
544{
545 IL_0014:
546 stloc:StringBuilder(var_6_20, call:StringBuilder(StringBuilder::Append, ldloc:StringBuilder(var_5), ldstr:string(", ")))
547}
548
549 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
550 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
551 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
552 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
553 --- End of inner exception stack trace ---
554 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
555 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
556*/;
557 }
558
559 // Token: 0x060039A2 RID: 14754 RVA: 0x0022E1A4 File Offset: 0x0022C3A4
561 {
562 int num = 1;
563 if (num == 0)
564 {
565 }
566 if (num == 0)
567 {
568 }
569 if (num == 0)
570 {
571 }
573 if (num == 0)
574 {
575 }
581 StringBuilder stringBuilder = stringBuilder2.Append(", ");
582 }
583
584 // Token: 0x060039A3 RID: 14755 RVA: 0x0022E200 File Offset: 0x0022C400
586 {
587 if (!true)
588 {
589 }
591 }
592
593 // Token: 0x060039A4 RID: 14756 RVA: 0x0022E218 File Offset: 0x0022C418
595 {
596 int num = 1;
597 if (num == 0)
598 {
599 }
600 if (num == 0)
601 {
602 }
604 }
605
606 // Token: 0x17000705 RID: 1797
607 // (get) Token: 0x060039A5 RID: 14757 RVA: 0x0022E238 File Offset: 0x0022C438
608 public static bool ShouldFastUseItem
609 {
610 get
611 {
612 if (!true)
613 {
614 }
615 bool flag;
616 return flag;
617 }
618 }
619
620 // Token: 0x060039A6 RID: 14758 RVA: 0x0022E24C File Offset: 0x0022C44C
621 public static void TryEndingFastUse()
622 {
623 if (!true)
624 {
625 }
626 }
627
628 // Token: 0x17000706 RID: 1798
629 // (get) Token: 0x060039A7 RID: 14759 RVA: 0x0022E25C File Offset: 0x0022C45C
630 public static bool InBuildingMode
631 {
632 get
633 {
634 /*
635An exception occurred when decompiling this method (060039A7)
636
637ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput::get_InBuildingMode()
638
639 ---> System.Exception: Basic block has to end with unconditional control flow.
640{
641 IL_0000:
642 brtrue(IL_0000, ldc.i4:bool(1))
643}
644
645 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
646 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
647 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
648 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
649 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
650 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
651 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
652 --- End of inner exception stack trace ---
653 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
654 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
655*/;
656 }
657 }
658
659 // Token: 0x17000707 RID: 1799
660 // (get) Token: 0x060039A8 RID: 14760 RVA: 0x0022E26C File Offset: 0x0022C46C
661 public static int RealScreenWidth
662 {
663 get
664 {
665 /*
666An exception occurred when decompiling this method (060039A8)
667
668ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.GameInput.PlayerInput::get_RealScreenWidth()
669
670 ---> System.Exception: Basic block has to end with unconditional control flow.
671{
672 IL_0000:
673 brtrue(IL_0000, ldc.i4:bool(1))
674}
675
676 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
677 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
678 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
679 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
680 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
681 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
682 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
683 --- End of inner exception stack trace ---
684 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
685 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
686*/;
687 }
688 }
689
690 // Token: 0x17000708 RID: 1800
691 // (get) Token: 0x060039A9 RID: 14761 RVA: 0x0022E27C File Offset: 0x0022C47C
692 public static int RealScreenHeight
693 {
694 get
695 {
696 return 41697280;
697 }
698 }
699
700 // Token: 0x060039AA RID: 14762 RVA: 0x0022E290 File Offset: 0x0022C490
701 public static void SetSelectedProfile(string name)
702 {
703 if (!true)
704 {
705 }
706 if (!true)
707 {
708 }
709 }
710
711 // Token: 0x060039AB RID: 14763 RVA: 0x0022E2A4 File Offset: 0x0022C4A4
712 public static void Initialize()
713 {
714 if (!true)
715 {
716 }
720 }
721
722 // Token: 0x17000709 RID: 1801
723 // (get) Token: 0x060039AC RID: 14764 RVA: 0x0022E2D4 File Offset: 0x0022C4D4
724 public static bool CursorIsBusy
725 {
726 get
727 {
728 if (!true)
729 {
730 }
731 return true;
732 }
733 }
734
735 // Token: 0x060039AD RID: 14765 RVA: 0x0022E2E8 File Offset: 0x0022C4E8
736 public static bool IsGamepadButtonLockedFromUse(string keyName)
737 {
738 /*
739An exception occurred when decompiling this method (060039AD)
740
741ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput::IsGamepadButtonLockedFromUse(System.String)
742
743 ---> System.Exception: Basic block has to end with unconditional control flow.
744{
745 IL_0000:
746 brtrue(IL_0000, ldc.i4:bool(1))
747}
748
749 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
750 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
751 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
752 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
753 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
754 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
755 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
756 --- End of inner exception stack trace ---
757 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
758 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
759*/;
760 }
761
762 // Token: 0x060039AE RID: 14766 RVA: 0x0022E2F8 File Offset: 0x0022C4F8
763 public static void UpdateInput()
764 {
765 int num = 1;
767 if (num == 0)
768 {
769 }
773 if (num == 0)
774 {
775 }
776 if (true)
777 {
778 return;
779 }
780 if (!true)
781 {
782 }
784 if (!true)
785 {
786 }
788 int num2 = 1;
790 bool flag = PlayerInput.KeyboardInput();
802 Cursor cursor;
803 int num3;
804 if (cursor != null)
805 {
806 num3 = 1;
807 return;
808 }
809 Main.mouseLeft = num3 != 0;
810 Cursor cursor2;
811 if (cursor2 != null)
812 {
813 return;
814 }
815 Main.mouseRight = true;
817 if (num2 == 0)
818 {
819 }
820 }
821
822 // Token: 0x060039AF RID: 14767 RVA: 0x0022E3F4 File Offset: 0x0022C5F4
823 public static void UpdateMainMouse()
824 {
825 if (!true)
826 {
827 }
830 if (!true)
831 {
832 }
837 }
838
839 // Token: 0x060039B0 RID: 14768 RVA: 0x0022E44C File Offset: 0x0022C64C
840 public static void CacheZoomableValues()
841 {
842 if (!true)
843 {
844 }
847 }
848
849 // Token: 0x060039B1 RID: 14769 RVA: 0x0022E468 File Offset: 0x0022C668
850 public static void CacheMousePositionForZoom()
851 {
852 if (!true)
853 {
854 }
855 int mouseX = Main.mouseX;
856 int mouseY = Main.mouseY;
857 }
858
859 // Token: 0x060039B2 RID: 14770 RVA: 0x0022E488 File Offset: 0x0022C688
860 private static void CacheOriginalInput()
861 {
862 if (!true)
863 {
864 }
865 int mouseX = Main.mouseX;
866 int mouseY = Main.mouseY;
867 int lastMouseX = Main.lastMouseX;
868 int lastMouseY = Main.lastMouseY;
869 }
870
871 // Token: 0x060039B3 RID: 14771 RVA: 0x0022E4BC File Offset: 0x0022C6BC
872 public static void CacheOriginalScreenDimensions()
873 {
874 if (!true)
875 {
876 }
877 int screenWidth = Main.screenWidth;
878 int screenHeight = Main.screenHeight;
879 }
880
881 // Token: 0x1700070A RID: 1802
882 // (get) Token: 0x060039B4 RID: 14772 RVA: 0x0022E4DC File Offset: 0x0022C6DC
884 {
885 get
886 {
887 if (!true)
888 {
889 }
890 return 1;
891 }
892 }
893
894 // Token: 0x060039B5 RID: 14773 RVA: 0x0022E4F0 File Offset: 0x0022C6F0
895 private static bool GamePadInput()
896 {
897 /*
898An exception occurred when decompiling this method (060039B5)
899
900ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput::GamePadInput()
901
902 ---> System.Exception: Basic block has to end with unconditional control flow.
903{
904 IL_0003:
905 callsetter:int32(PlayerInput::set_ScrollWheelValue, callgetter:int32(PlayerInput::get_ScrollWheelValue))
906 stloc:bool(var_1_14, callgetter:bool(Main::get_SettingBlockGamepadsEntirely))
907}
908
909 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
910 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
911 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
912 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
913 --- End of inner exception stack trace ---
914 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
915 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
916*/;
917 }
918
919 // Token: 0x060039B6 RID: 14774 RVA: 0x0022E514 File Offset: 0x0022C714
946
947 // Token: 0x060039B7 RID: 14775 RVA: 0x0022E5CC File Offset: 0x0022C7CC
948 private static bool KeyboardInput()
949 {
950 int num = 1;
951 if (num == 0)
952 {
953 }
954 if (num == 0)
955 {
956 }
957 if (num != 0)
958 {
959 if (!false)
960 {
961 }
962 string text;
963 bool flag = Main.blockKey != text;
964 string blockKey = Main.blockKey;
965 string text2;
966 bool flag2 = text2 == blockKey;
967 string text3;
969 if (!true)
970 {
971 }
972 bool gameMenu = Main.gameMenu;
973 if (!true)
974 {
975 }
976 }
977 long num2 = 0L;
978 if (num2 == 0L)
979 {
980 if (num2 == 0L)
981 {
982 }
983 if (num2 == 0L)
984 {
985 }
986 if (num2 == 0L)
987 {
988 }
992 return;
993 }
994 }
995
996 // Token: 0x060039B8 RID: 14776 RVA: 0x0022E668 File Offset: 0x0022C868
997 private static void DebugKeys(List<Keys> keys)
998 {
999 }
1000
1001 // Token: 0x060039B9 RID: 14777 RVA: 0x0022E678 File Offset: 0x0022C878
1002 private static void FixDerpedRebinds()
1003 {
1004 }
1005
1006 // Token: 0x060039BA RID: 14778 RVA: 0x0022E688 File Offset: 0x0022C888
1007 private static bool CheckRebindingProcessGamepad(string newKey)
1008 {
1009 }
1010
1011 // Token: 0x060039BB RID: 14779 RVA: 0x0022E698 File Offset: 0x0022C898
1012 private static bool CheckRebindingProcessKeyboard(string newKey)
1013 {
1014 }
1015
1016 // Token: 0x060039BC RID: 14780 RVA: 0x0022E6A8 File Offset: 0x0022C8A8
1017 private static void PostInput()
1018 {
1019 if (!true)
1020 {
1021 }
1022 int num = 1;
1023 if (num == 0)
1024 {
1025 }
1026 if (num == 0)
1027 {
1028 }
1030 int num2 = true.ToInt();
1033 int num4 = 1;
1036 long num5 = 0L;
1038 }
1039
1040 // Token: 0x060039BD RID: 14781 RVA: 0x0022E750 File Offset: 0x0022C950
1041 private static void HandleDpadSnap()
1042 {
1043 }
1044
1045 // Token: 0x060039BE RID: 14782 RVA: 0x0022E818 File Offset: 0x0022CA18
1046 public static string BuildCommand(string CommandText, bool Last, params List<string>[] Bindings)
1047 {
1048 int num = 1;
1049 string text5;
1050 if (num != 0)
1051 {
1052 if (num == 0)
1053 {
1054 }
1055 string text2;
1056 string text = "" + text2;
1057 if (num == 0)
1058 {
1059 }
1060 string text3;
1061 int stringLength = text3._stringLength;
1062 string text4 = text + "/" + text3;
1063 int stringLength2 = text4._stringLength;
1064 text5 = text4 + ": " + text3;
1065 }
1066 return text5;
1067 }
1068
1069 // Token: 0x060039BF RID: 14783 RVA: 0x0022E87C File Offset: 0x0022CA7C
1070 private static string GenerateGlyphList(List<string> list)
1071 {
1072 if (true)
1073 {
1074 string text = GlyphTagHandler.GenerateTag("");
1075 string text2 = GlyphTagHandler.GenerateTag(text);
1076 return text + "/" + text2;
1077 }
1078 return "";
1079 }
1080
1081 // Token: 0x060039C0 RID: 14784 RVA: 0x0022E8B4 File Offset: 0x0022CAB4
1083 {
1084 if (true)
1085 {
1086 return "" + "/" + "";
1087 }
1088 return "";
1089 }
1090
1091 // Token: 0x060039C1 RID: 14785 RVA: 0x0022E8E0 File Offset: 0x0022CAE0
1092 public static void NavigatorCachePosition()
1093 {
1094 }
1095
1096 // Token: 0x060039C2 RID: 14786 RVA: 0x0022E8F0 File Offset: 0x0022CAF0
1097 public static void NavigatorUnCachePosition()
1098 {
1099 }
1100
1101 // Token: 0x060039C3 RID: 14787 RVA: 0x0022E900 File Offset: 0x0022CB00
1102 public static void LockOnCachePosition()
1103 {
1104 if (!true)
1105 {
1106 }
1109 }
1110
1111 // Token: 0x060039C4 RID: 14788 RVA: 0x0022E924 File Offset: 0x0022CB24
1112 public static void LockOnUnCachePosition()
1113 {
1114 if (!true)
1115 {
1116 }
1119 }
1120
1121 // Token: 0x060039C5 RID: 14789 RVA: 0x0022E948 File Offset: 0x0022CB48
1122 public static void PrettyPrintProfiles(string text)
1123 {
1124 if ("\r\n" == null || "\r\n" != null)
1125 {
1126 string text3;
1127 string text2 = "\r\n" + text3 + "{\r\n ";
1128 string text5;
1129 string text4 = text5.Replace(": {\r\n ", text2);
1130 string text7;
1131 string text6 = text7.Replace("[\r\n ", "[").Replace("\"\r\n ", "\"").Replace("\",\r\n ", "\", ")
1132 .Replace("\",\r\n ", "\", ")
1133 .Replace("\r\n ]", "]");
1134 return;
1135 }
1136 throw new ArrayTypeMismatchException();
1137 }
1138
1139 // Token: 0x060039C6 RID: 14790 RVA: 0x0022E9E4 File Offset: 0x0022CBE4
1140 public static void PrettyPrintProfilesOld(string text)
1141 {
1142 string text3;
1143 string text2 = text3.Replace("[\r\n ", "[").Replace("\"\r\n ", "\"").Replace("\",\r\n ", "\", ")
1144 .Replace("\r\n ]", "]");
1145 }
1146
1147 // Token: 0x060039C7 RID: 14791 RVA: 0x0022EA30 File Offset: 0x0022CC30
1149 {
1150 }
1151
1152 // Token: 0x060039C8 RID: 14792 RVA: 0x0022F070 File Offset: 0x0022D270
1153 public static void SetZoom_UI()
1154 {
1155 }
1156
1157 // Token: 0x060039C9 RID: 14793 RVA: 0x0022F080 File Offset: 0x0022D280
1158 public static void SetZoom_World()
1159 {
1160 }
1161
1162 // Token: 0x060039CA RID: 14794 RVA: 0x0022F090 File Offset: 0x0022D290
1163 public static void SetZoom_Unscaled()
1164 {
1165 }
1166
1167 // Token: 0x060039CB RID: 14795 RVA: 0x0022F0A0 File Offset: 0x0022D2A0
1168 public static void SetZoom_Test()
1169 {
1170 }
1171
1172 // Token: 0x060039CC RID: 14796 RVA: 0x0022F0B0 File Offset: 0x0022D2B0
1173 public static void SetZoom_MouseInWorld()
1174 {
1175 }
1176
1177 // Token: 0x060039CD RID: 14797 RVA: 0x0022F0C0 File Offset: 0x0022D2C0
1178 public static void SetDesiredZoomContext(ZoomContext context)
1179 {
1180 }
1181
1182 // Token: 0x060039CE RID: 14798 RVA: 0x0022F0D0 File Offset: 0x0022D2D0
1183 public static void SetZoom_Context()
1184 {
1185 }
1186
1187 // Token: 0x060039CF RID: 14799 RVA: 0x0022F0E0 File Offset: 0x0022D2E0
1188 private static void SetZoom_Scaled(float scale)
1189 {
1190 }
1191
1192 // Token: 0x060039D0 RID: 14800 RVA: 0x0022F0F0 File Offset: 0x0022D2F0
1194 {
1195 }
1196
1197 // Token: 0x060039D1 RID: 14801 RVA: 0x0022F104 File Offset: 0x0022D304
1198 // Note: this type is marked as 'beforefieldinit'.
1200 {
1201 if (!true)
1202 {
1203 }
1204 if (!true)
1205 {
1206 }
1207 if (true)
1208 {
1209 return;
1210 }
1211 if (!true)
1212 {
1213 }
1214 if ("" == null)
1215 {
1216 }
1217 Type type;
1218 Array values = Enum.GetValues(type);
1219 if (values != null && (values == null || values == null))
1220 {
1221 throw new InvalidCastException();
1222 }
1223 }
1224
1225 // Token: 0x040079E0 RID: 31200
1226 public static Vector2 RawMouseScale;
1227
1228 // Token: 0x040079E1 RID: 31201
1230
1231 // Token: 0x040079E2 RID: 31202
1233
1234 // Token: 0x040079E3 RID: 31203
1236
1237 // Token: 0x040079E4 RID: 31204
1238 private static StringBuilder ff;
1239
1240 // Token: 0x040079E5 RID: 31205
1241 private static bool _lastActivityState;
1242
1243 // Token: 0x040079E6 RID: 31206
1244 public static int ScrollWheelDeltaForUI;
1245
1246 // Token: 0x040079E7 RID: 31207
1247 public static bool GamepadAllowScrolling;
1248
1249 // Token: 0x040079E8 RID: 31208
1250 public static int GamepadScrollValue;
1251
1252 // Token: 0x040079E9 RID: 31209
1254
1255 // Token: 0x040079EA RID: 31210
1257
1258 // Token: 0x040079EB RID: 31211
1260
1261 // Token: 0x040079EC RID: 31212
1263 private static Action OnBindingChange;
1264
1265 // Token: 0x040079ED RID: 31213
1267 private static Action OnActionableInput;
1268
1269 // Token: 0x040079EE RID: 31214
1270 private static string _listeningTrigger;
1271
1272 // Token: 0x040079EF RID: 31215
1274
1275 // Token: 0x040079F0 RID: 31216
1276 private static bool _canReleaseRebindingLock;
1277
1278 // Token: 0x040079F1 RID: 31217
1279 private static int _memoOfLastPoint;
1280
1281 // Token: 0x040079F2 RID: 31218
1282 public static int NavigatorRebindingLock;
1283
1284 // Token: 0x040079F3 RID: 31219
1285 public static string BlockedKey;
1286
1287 // Token: 0x040079F4 RID: 31220
1289
1290 // Token: 0x040079F5 RID: 31221
1292
1293 // Token: 0x040079F6 RID: 31222
1294 private static string _selectedProfile;
1295
1296 // Token: 0x040079F7 RID: 31223
1298
1299 // Token: 0x040079F8 RID: 31224
1301
1302 // Token: 0x040079F9 RID: 31225
1303 private static Buttons[] ButtonsGamepad;
1304
1305 // Token: 0x040079FA RID: 31226
1306 public static bool UseSteamDeckIfPossible;
1307
1308 // Token: 0x040079FB RID: 31227
1310
1311 // Token: 0x040079FC RID: 31228
1312 private static bool _InBuildingMode;
1313
1314 // Token: 0x040079FD RID: 31229
1315 private static int _UIPointForBuildingMode;
1316
1317 // Token: 0x040079FE RID: 31230
1318 public static bool WritingText;
1319
1320 // Token: 0x040079FF RID: 31231
1321 private static int _originalMouseX;
1322
1323 // Token: 0x04007A00 RID: 31232
1324 private static int _originalMouseY;
1325
1326 // Token: 0x04007A01 RID: 31233
1327 private static int _originalLastMouseX;
1328
1329 // Token: 0x04007A02 RID: 31234
1330 private static int _originalLastMouseY;
1331
1332 // Token: 0x04007A03 RID: 31235
1333 private static int _originalScreenWidth;
1334
1335 // Token: 0x04007A04 RID: 31236
1336 private static int _originalScreenHeight;
1337
1338 // Token: 0x04007A05 RID: 31237
1340
1341 // Token: 0x04007A06 RID: 31238
1343
1344 // Token: 0x04007A07 RID: 31239
1345 private static int[] DpadSnapCooldown;
1346
1347 // Token: 0x020006C6 RID: 1734
1348 public class MiscSettingsTEMP
1349 {
1350 // Token: 0x060039D2 RID: 14802 RVA: 0x0022F144 File Offset: 0x0022D344
1352 {
1353 }
1354
1355 // Token: 0x060039D3 RID: 14803 RVA: 0x0022F158 File Offset: 0x0022D358
1356 // Note: this type is marked as 'beforefieldinit'.
1358 {
1359 }
1360
1361 // Token: 0x04007A08 RID: 31240
1362 public static bool HotbarRadialShouldBeUsed;
1363 }
1364
1365 // Token: 0x020006C7 RID: 1735
1366 public static class SettingsForUI
1367 {
1368 // Token: 0x1700070B RID: 1803
1369 // (get) Token: 0x060039D4 RID: 14804 RVA: 0x000021DB File Offset: 0x000003DB
1370 // (set) Token: 0x060039D5 RID: 14805 RVA: 0x0022F168 File Offset: 0x0022D368
1372 {
1374 get
1375 {
1376 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1377 }
1379 private set
1380 {
1381 }
1382 }
1383
1384 // Token: 0x060039D6 RID: 14806 RVA: 0x0022F178 File Offset: 0x0022D378
1386 {
1387 if (cursorMode == CursorMode.Mouse)
1388 {
1389 return;
1390 }
1391 }
1392
1393 // Token: 0x1700070C RID: 1804
1394 // (get) Token: 0x060039D7 RID: 14807 RVA: 0x0022F18C File Offset: 0x0022D38C
1395 public static bool ShowGamepadHints
1396 {
1397 get
1398 {
1399 if (!true)
1400 {
1401 }
1403 return true;
1404 }
1405 }
1406
1407 // Token: 0x1700070D RID: 1805
1408 // (get) Token: 0x060039D8 RID: 14808 RVA: 0x0022F1AC File Offset: 0x0022D3AC
1409 public static bool AllowSecondaryGamepadAim
1410 {
1411 get
1412 {
1413 return true;
1414 }
1415 }
1416
1417 // Token: 0x1700070E RID: 1806
1418 // (get) Token: 0x060039D9 RID: 14809 RVA: 0x0022F1C0 File Offset: 0x0022D3C0
1419 public static bool PushEquipmentAreaUp
1420 {
1421 get
1422 {
1423 if (!true)
1424 {
1425 }
1427 if (!true)
1428 {
1429 }
1430 if (!true)
1431 {
1432 return;
1433 }
1434 }
1435 }
1436
1437 // Token: 0x1700070F RID: 1807
1438 // (get) Token: 0x060039DA RID: 14810 RVA: 0x0022F1E0 File Offset: 0x0022D3E0
1439 public static bool ShowGamepadCursor
1440 {
1441 get
1442 {
1443 if (!true)
1444 {
1445 }
1446 if (!true)
1447 {
1448 }
1449 if (true)
1450 {
1451 }
1453 }
1454 }
1455
1456 // Token: 0x17000710 RID: 1808
1457 // (get) Token: 0x060039DB RID: 14811 RVA: 0x0022F200 File Offset: 0x0022D400
1458 public static bool HighlightThingsForMouse
1459 {
1460 get
1461 {
1462 if (!true)
1463 {
1464 }
1466 return true;
1467 }
1468 }
1469
1470 // Token: 0x17000711 RID: 1809
1471 // (get) Token: 0x060039DC RID: 14812 RVA: 0x000021DB File Offset: 0x000003DB
1472 // (set) Token: 0x060039DD RID: 14813 RVA: 0x0022F21C File Offset: 0x0022D41C
1474 {
1476 get
1477 {
1478 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1479 }
1481 private set
1482 {
1483 }
1484 }
1485
1486 // Token: 0x17000712 RID: 1810
1487 // (get) Token: 0x060039DE RID: 14814 RVA: 0x000021DB File Offset: 0x000003DB
1489 {
1490 get
1491 {
1492 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1493 }
1494 }
1495
1496 // Token: 0x060039DF RID: 14815 RVA: 0x0022F22C File Offset: 0x0022D42C
1497 public static void UpdateCounters()
1498 {
1499 }
1500
1501 // Token: 0x060039E0 RID: 14816 RVA: 0x0022F23C File Offset: 0x0022D43C
1502 public static void TryRevertingToMouseMode()
1503 {
1504 }
1505
1506 // Token: 0x04007A09 RID: 31241
1509
1510 // Token: 0x04007A0A RID: 31242
1512 private static int <FramesSinceLastTimeInMouseMode>k__BackingField;
1513 }
1514
1515 // Token: 0x020006C8 RID: 1736
1516 private struct FastUseItemMemory
1517 {
1518 // Token: 0x060039E1 RID: 14817 RVA: 0x0022F260 File Offset: 0x0022D460
1519 public bool TryStartForItemSlot(Player player, int itemSlot)
1520 {
1521 /*
1522An exception occurred when decompiling this method (060039E1)
1523
1524ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput/FastUseItemMemory::TryStartForItemSlot(Terraria.Player,System.Int32)
1525
1526 ---> System.Exception: Basic block has to end with unconditional control flow.
1527{
1528 IL_002C:
1529 stloc:int64(var_4_2D, ldc.i4:int64(0))
1530 call:void(ItemSlot::PickupItemIntoMouse, ldloc:class Terraria.Item[](var_2_18), ldloc:int64[exp:int32](var_4_2D), ldloc:int32(itemSlot), ldloc:Player(player))
1531}
1532
1533 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
1534 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
1535 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
1536 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
1537 --- End of inner exception stack trace ---
1538 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
1539 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
1540*/;
1541 }
1542
1543 // Token: 0x060039E2 RID: 14818 RVA: 0x0022F2A8 File Offset: 0x0022D4A8
1544 public bool TryStartForMouse(Player player)
1545 {
1546 this._player = player;
1547 this._slot = 1;
1548 if (!true)
1549 {
1550 }
1551 Item mouseItem = Main.mouseItem;
1552 this._shouldFastUse = 257 != 0;
1553 this._itemType = 1;
1554 return true;
1555 }
1556
1557 // Token: 0x060039E3 RID: 14819 RVA: 0x0022F2E4 File Offset: 0x0022D4E4
1558 public void Clear()
1559 {
1560 }
1561
1562 // Token: 0x060039E4 RID: 14820 RVA: 0x0022F2F4 File Offset: 0x0022D4F4
1563 public bool CanFastUse()
1564 {
1565 /*
1566An exception occurred when decompiling this method (060039E4)
1567
1568ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.PlayerInput/FastUseItemMemory::CanFastUse()
1569
1570 ---> System.Exception: Basic block has to end with unconditional control flow.
1571{
1572 Block_0:
1573 stloc:bool(var_0_06, ldfld:bool(FastUseItemMemory::_shouldFastUse, ldloc:valuetype Terraria.GameInput.PlayerInput/FastUseItemMemory&(this)))
1574 stloc:bool(var_1_0D, ldfld:bool(FastUseItemMemory::_isMouseItem, ldloc:valuetype Terraria.GameInput.PlayerInput/FastUseItemMemory&(this)))
1575 stloc:Item(var_3_15, callgetter:Item(Main::get_mouseItem))
1576 stloc:Vector2(var_5_29, ldfld:Vector2(Entity::position, ldfld:class Terraria.Item[][exp:Entity](Player::inventory, ldfld:Player(FastUseItemMemory::_player, ldloc:valuetype Terraria.GameInput.PlayerInput/FastUseItemMemory&(this)))))
1577 stloc:int32(var_6_31, ldfld:int32(FastUseItemMemory::_itemType, ldloc:valuetype Terraria.GameInput.PlayerInput/FastUseItemMemory&(this)))
1578}
1579
1580 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
1581 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
1582 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
1583 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
1584 --- End of inner exception stack trace ---
1585 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
1586 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
1587*/;
1588 }
1589
1590 // Token: 0x060039E5 RID: 14821 RVA: 0x0022F334 File Offset: 0x0022D534
1591 public void EndFastUse()
1592 {
1593 if (this._shouldFastUse && !this._isMouseItem)
1594 {
1595 Vector2 position = this._player.inventory.position;
1596 Item mouseItem = Main.mouseItem;
1598 Item[] inventory = this._player.inventory;
1599 if (mouseItem != null && mouseItem == null)
1600 {
1601 throw new ArrayTypeMismatchException();
1602 }
1603 }
1604 }
1605
1606 // Token: 0x04007A0B RID: 31243
1607 private int _slot;
1608
1609 // Token: 0x04007A0C RID: 31244
1610 private int _itemType;
1611
1612 // Token: 0x04007A0D RID: 31245
1613 private bool _shouldFastUse;
1614
1615 // Token: 0x04007A0E RID: 31246
1616 private bool _isMouseItem;
1617
1618 // Token: 0x04007A0F RID: 31247
1620 }
1621 }
1622}
class f__AnonymousType0<< Count > j__TPar
static KeyboardState GetState()
Definition Keyboard.cs:12
static MouseState GetState(GameWindow window)
Definition Mouse.cs:10
static Array GetValues(Type enumType)
Definition Enum.cs:233
StringBuilder Append(char value, int repeatCount)
Vector2 position
Definition Entity.cs:460
static CursorMode< CurrentCursorMode > k__BackingField
static void SetCursorMode(CursorMode cursorMode)
static int< FramesSinceLastTimeInMouseMode > k__BackingField
static PlayerInput.FastUseItemMemory _fastUseMemory
static List< string > _buttonsLocked
static MouseState MouseInfoOld
static StringBuilder _invalidatorCheck
static string GenerateGlyphList(List< string > list)
static void TryEnteringFastUseModeForMouseItem()
static void DebugKeys(List< Keys > keys)
static TriggersPack Triggers
static void TryEnteringFastUseModeForInventorySlot(int inventorySlot)
static void CacheOriginalScreenDimensions()
static bool IsGamepadButtonLockedFromUse(string keyName)
static void SetSelectedProfile(string name)
static void PrettyPrintProfiles(string text)
static bool CheckRebindingProcessKeyboard(string newKey)
static List< string > MouseKeys
static void Reset(KeyConfiguration c, PresetProfiles style, InputMode mode)
static PlayerInputProfile _currentProfile
static InputMode _listeningInputMode
static InputMode CurrentInputMode
static string BuildCommand(string CommandText, bool Last, params List< string >[] Bindings)
static void CacheMousePositionForZoom()
static SmartSelectGamepadPointer smartSelectPointer
static PlayerInputProfile CurrentProfile
static Dictionary< string, PlayerInputProfile > OriginalProfiles
static void ResetInputsOnActiveStateChange()
static void SetZoom_Scaled(float scale)
static string GenerateRawInputList(List< string > list)
static Dictionary< string, PlayerInputProfile > Profiles
static ZoomContext _currentWantedZoom
static void SetDesiredZoomContext(ZoomContext context)
static Vector2 GamepadThumbstickRight
static void PrettyPrintProfilesOld(string text)
static MouseState MouseInfo
static KeyConfiguration ProfileGamepadUI
static void ListenFor(string triggerName, InputMode inputmode)
static bool CheckRebindingProcessGamepad(string newKey)
static bool ingameOptionsWindow
Definition Main.cs:811
static int myPlayer
Definition Main.cs:2337
static bool mouseRight
Definition Main.cs:685
static string blockKey
Definition Main.cs:2435
static int lastMouseY
Definition Main.cs:657
static int screenHeight
Definition Main.cs:2015
static Item mouseItem
Definition Main.cs:2155
static int lastMouseX
Definition Main.cs:643
static bool playerInventory
Definition Main.cs:2057
static int screenWidth
Definition Main.cs:2001
static int mouseY
Definition Main.cs:601
static bool gameMenu
Definition Main.cs:2673
static Player LocalPlayer
Definition Main.cs:5267
static Preferences InputProfiles
Definition Main.cs:2859
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671
Item[] inventory
Definition Player.cs:21263
bool TryStartForItemSlot(Player player, int itemSlot)