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
GUIControllerCraftingGuide.cs
Go to the documentation of this file.
1using System;
4
5// Token: 0x020000BC RID: 188
7{
8 // Token: 0x0600048C RID: 1164 RVA: 0x0000E5B8 File Offset: 0x0000C7B8
10 : base(GUIPageIcons.Category.CraftingGuide)
11 {
12 }
13
14 // Token: 0x0600048D RID: 1165 RVA: 0x0000E5CC File Offset: 0x0000C7CC
21
22 // Token: 0x0600048E RID: 1166 RVA: 0x000021DB File Offset: 0x000003DB
23 private int GetCollectionCount()
24 {
25 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27
28 // Token: 0x0600048F RID: 1167 RVA: 0x0000E5E0 File Offset: 0x0000C7E0
29 private float GetItemScale()
30 {
31 /*
32An exception occurred when decompiling this method (0600048F)
33
34ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIControllerCraftingGuide::GetItemScale()
35
36 ---> System.Exception: Basic block has to end with unconditional control flow.
37{
38 Block_0:
39 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
40}
41
42 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
43 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
44 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
45 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
46 --- End of inner exception stack trace ---
47 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
48 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
49*/;
50 }
51
52 // Token: 0x06000490 RID: 1168 RVA: 0x000021DB File Offset: 0x000003DB
53 private float GetScrollOffset()
54 {
55 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
56 }
57
58 // Token: 0x06000491 RID: 1169 RVA: 0x0000E5F4 File Offset: 0x0000C7F4
59 private void SetScrollOffset(float offset)
60 {
61 }
62
63 // Token: 0x06000492 RID: 1170 RVA: 0x0000E604 File Offset: 0x0000C804
64 public bool IsInMenu()
65 {
66 return this.GridNav.InMenu;
67 }
68
69 // Token: 0x06000493 RID: 1171 RVA: 0x0000E61C File Offset: 0x0000C81C
70 private int GetMenuItemCount()
71 {
72 }
73
74 // Token: 0x06000494 RID: 1172 RVA: 0x0000E62C File Offset: 0x0000C82C
75 private int GetDisplayItemCount()
76 {
77 }
78
79 // Token: 0x17000083 RID: 131
80 // (get) Token: 0x06000495 RID: 1173 RVA: 0x0000E63C File Offset: 0x0000C83C
82 {
83 get
84 {
85 /*
86An exception occurred when decompiling this method (06000495)
87
88ICSharpCode.Decompiler.DecompilerException: Error decompiling GUIControllerDynamicGridNavigator GUIControllerCraftingGuide::get_GridNav()
89
90 ---> System.Exception: Basic block has to end with unconditional control flow.
91{
92 IL_0000:
93 brtrue(IL_0000, ldfld:GUIControllerDynamicGridNavigator[exp:bool](GUIControllerCraftingGuide::_gridNav, ldloc:GUIControllerCraftingGuide(this)))
94}
95
96 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
97 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
98 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
99 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
100 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
101 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
102 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
103 --- End of inner exception stack trace ---
104 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
105 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
106*/;
107 }
108 }
109
110 // Token: 0x06000496 RID: 1174 RVA: 0x0000E650 File Offset: 0x0000C850
111 public override int GetNavigationOutDirs()
112 {
113 base.LoadPageAnchor();
114 return this.GridNav.GetNavigationOutDirs();
115 }
116
117 // Token: 0x06000497 RID: 1175 RVA: 0x0000E670 File Offset: 0x0000C870
118 public override void Activate()
119 {
121 }
122
123 // Token: 0x06000498 RID: 1176 RVA: 0x0000E684 File Offset: 0x0000C884
125 {
126 base.LoadPageAnchor();
128 }
129
130 // Token: 0x06000499 RID: 1177 RVA: 0x0000E6A4 File Offset: 0x0000C8A4
131 protected void UpdateScroll()
132 {
133 }
134
135 // Token: 0x0600049A RID: 1178 RVA: 0x0000E6B4 File Offset: 0x0000C8B4
143
144 // Token: 0x0600049B RID: 1179 RVA: 0x0000E6D0 File Offset: 0x0000C8D0
145 protected void ClampPosition()
146 {
147 }
148
149 // Token: 0x0600049C RID: 1180 RVA: 0x0000E6E0 File Offset: 0x0000C8E0
151 {
152 base.LoadPageAnchor();
153 return this.GridNav.GetSelectedItemRegion();
154 }
155
156 // Token: 0x0600049D RID: 1181 RVA: 0x0000E700 File Offset: 0x0000C900
157 public override void NavigateInto(int column, int row)
158 {
159 base.LoadPageAnchor();
160 this.GridNav.NavigateInto(column, row);
161 }
162
163 // Token: 0x04000443 RID: 1091
165}
class f__AnonymousType0<< Count > j__TPar
GUIControllerDynamicGridNavigator _gridNav
GUIControllerDynamicGridNavigator GridNav
override void NavigateInto(int column, int row)
DraggableItemGrid_Layout GetGrid()
override GUIControllerItem Navigate(Vector2 navigationVector)