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
GUIControllerHotbarRadial.cs
Go to the documentation of this file.
1using System;
3using Terraria;
4
5// Token: 0x0200008F RID: 143
7{
8 // Token: 0x0600037D RID: 893 RVA: 0x0000B76C File Offset: 0x0000996C
10 {
11 }
12
13 // Token: 0x0600037E RID: 894 RVA: 0x0000B77C File Offset: 0x0000997C
14 public void Activate()
15 {
16 if (!true)
17 {
18 }
19 int myPlayer = Main.myPlayer;
21 }
22
23 // Token: 0x0600037F RID: 895 RVA: 0x0000B7D8 File Offset: 0x000099D8
25 {
26 /*
27An exception occurred when decompiling this method (0600037F)
28
29ICSharpCode.Decompiler.DecompilerException: Error decompiling GUIControllerItem GUIControllerHotbarRadial::Navigate(Microsoft.Xna.Framework.Vector2)
30
31 ---> System.Exception: Basic block has to end with unconditional control flow.
32{
33 IL_003B:
34 stloc:int32(var_10_41, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
35 stloc:int32(var_11_49, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
36 stloc:int32(var_12_51, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
37 stloc:int32(var_13_59, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
38 stfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this), ldloc:int32(var_13_59))
39 stloc:int32(var_14_69, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
40 stloc:int32(var_15_71, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
41 stfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this), ldloc:int32(var_15_71))
42 stloc:int32(var_16_81, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
43 stloc:int32(var_17_89, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
44 stfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this), ldloc:int32(var_17_89))
45 stloc:int32(var_18_99, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
46 stfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this), ldloc:int32(var_18_99))
47 stloc:int32(var_20_AD, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
48 stloc:int32(var_21_B5, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
49 stloc:int32(var_22_BD, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
50 stfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this), ldloc:int32(var_22_BD))
51 stloc:int32(var_23_CD, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
52 stfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this), ldloc:int32(var_23_CD))
53}
54
55 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
56 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
57 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
58 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
59 --- End of inner exception stack trace ---
60 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
61 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
62*/;
63 }
64
65 // Token: 0x06000380 RID: 896 RVA: 0x0000B8BC File Offset: 0x00009ABC
66 public int GetSelectedItem()
67 {
68 bool flag = this.hotbarMode;
69 int num = this.selectedColumn;
70 if (!flag)
71 {
72 int num2 = this.selectedRow;
73 return num;
74 }
75 return num;
76 }
77
78 // Token: 0x06000381 RID: 897 RVA: 0x0000B910 File Offset: 0x00009B10
80 {
81 /*
82An exception occurred when decompiling this method (06000381)
83
84ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle GUIControllerHotbarRadial::GetSelectedItemRegion()
85
86 ---> System.Exception: Basic block has to end with unconditional control flow.
87{
88 IL_00BB:
89 stloc:String_Layout(var_24_C2, ldfld:String_Layout(Hotbar_Layout::Title, ldloc:Hotbar_Layout(var_11)))
90 stloc:!0(var_25_C9, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
91 stloc:int32(var_28_D4, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
92 stloc:!0(var_29_DB, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
93 stloc:!0(var_30_E2, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
94 stloc:!0(var_31_E9, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
95 stloc:int32(var_33_F1, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
96 stloc:!0(var_34_F8, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
97 stloc:!0(var_35_FF, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
98 stloc:!0(var_36_106, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
99 stloc:int32(var_38_10E, ldfld:int32(GUIControllerHotbarRadial::selectedColumn, ldloc:GUIControllerHotbarRadial(this)))
100 stloc:!0(var_39_115, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
101 stloc:int32(var_40_11D, ldfld:int32(GUIControllerHotbarRadial::selectedRow, ldloc:GUIControllerHotbarRadial(this)))
102 stloc:!0(var_41_124, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
103}
104
105 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
106 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
107 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
108 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
109 --- End of inner exception stack trace ---
110 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
111 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
112*/;
113 }
114
115 // Token: 0x06000382 RID: 898 RVA: 0x0000BA44 File Offset: 0x00009C44
117 {
118 }
119
120 // Token: 0x04000363 RID: 867
121 private bool hotbarMode;
122
123 // Token: 0x04000364 RID: 868
124 private int selectedRow;
125
126 // Token: 0x04000365 RID: 869
127 private int selectedColumn;
128}
class f__AnonymousType0<< Count > j__TPar
GUIControllerItem Navigate(Vector2 navigationVector)
static int myPlayer
Definition Main.cs:2337