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
GUIMouseItem.cs
Go to the documentation of this file.
1using System;
2using Terraria;
3
4// Token: 0x02000159 RID: 345
5public class GUIMouseItem
6{
7 // Token: 0x170000EF RID: 239
8 // (get) Token: 0x06000974 RID: 2420 RVA: 0x0002B218 File Offset: 0x00029418
9 public bool HoldingItem
10 {
11 get
12 {
13 if (!true)
14 {
15 }
16 int type = Main.mouseItem.type;
17 if (type != 0)
18 {
19 if (type == 0)
20 {
21 }
23 return;
24 }
25 }
26 }
27
28 // Token: 0x170000F0 RID: 240
29 // (get) Token: 0x06000975 RID: 2421 RVA: 0x0002B24C File Offset: 0x0002944C
30 public bool BeingDragged
31 {
32 get
33 {
34 return this.mouseItemHoldDrag;
35 }
36 }
37
38 // Token: 0x170000F1 RID: 241
39 // (get) Token: 0x06000976 RID: 2422 RVA: 0x0002B260 File Offset: 0x00029460
40 public bool IsItemDropped
41 {
42 get
43 {
44 /*
45An exception occurred when decompiling this method (06000976)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIMouseItem::get_IsItemDropped()
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 IL_0040:
52 stloc:bool(var_10_48, callgetter:bool(Main::get_mouseLeft))
53 stloc:bool(var_12_52, callgetter:bool(Main::get_mouseLeftRelease))
54}
55
56 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
57 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
58 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
59 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
60 --- End of inner exception stack trace ---
61 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
62 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
63*/;
64 }
65 }
66
67 // Token: 0x06000977 RID: 2423 RVA: 0x0002B2C4 File Offset: 0x000294C4
68 public void BeginDrag(bool dragging)
69 {
70 if (!true)
71 {
72 }
74 }
75
76 // Token: 0x06000978 RID: 2424 RVA: 0x0002B2DC File Offset: 0x000294DC
77 public void DisableDrag()
78 {
79 this.disableDrag = true;
80 if (!true)
81 {
82 }
84 }
85
86 // Token: 0x06000979 RID: 2425 RVA: 0x0002B2FC File Offset: 0x000294FC
87 public GUIMouseItem()
88 {
89 }
90
91 // Token: 0x04000944 RID: 2372
92 private int mouseDragStart;
93
94 // Token: 0x04000945 RID: 2373
95 private bool mouseItemHoldDrag;
96
97 // Token: 0x04000946 RID: 2374
98 private bool disableDrag;
99
100 // Token: 0x04000947 RID: 2375
101 private int disableDragStart;
102}
class f__AnonymousType0<< Count > j__TPar
void DisableDrag()
void BeginDrag(bool dragging)
bool mouseItemHoldDrag
static Item mouseItem
Definition Main.cs:2155