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
GUIControllerDresser.cs
Go to the documentation of this file.
1using System;
3using Terraria;
4
5// Token: 0x020000C2 RID: 194
7{
8 // Token: 0x060004BC RID: 1212 RVA: 0x0000EB54 File Offset: 0x0000CD54
10 : base(GUIPageIcons.Category.Dresser)
11 {
12 }
13
14 // Token: 0x060004BD RID: 1213 RVA: 0x0000EB70 File Offset: 0x0000CD70
15 public override void Activate()
16 {
17 if (!true)
18 {
19 }
20 if (Main.selClothes != 0)
21 {
22 return;
23 }
24 int num;
25 this.Item = num;
26 }
27
28 // Token: 0x060004BE RID: 1214 RVA: 0x0000EB94 File Offset: 0x0000CD94
30 {
31 /*
32An exception occurred when decompiling this method (060004BE)
33
34ICSharpCode.Decompiler.DecompilerException: Error decompiling GUIControllerItem GUIControllerDresser::Navigate(Microsoft.Xna.Framework.Vector2)
35
36 ---> System.Exception: Basic block has to end with unconditional control flow.
37{
38 IL_0064:
39 stloc:int32(var_10_6C, callgetter:int32(Main::get_selClothes))
40 stloc:int32(var_11_74, ldfld:int32(GUIControllerDresser::Item, ldloc:GUIControllerDresser(this)))
41 stloc:int32(var_12_78, ldc.i4:int32(9))
42 stfld:Controls(GUIControllerDresser::selectedControl, ldloc:GUIControllerDresser(this), ldloc:int32[exp:Controls](var_12_78))
43 stloc:int32(var_13_84, ldc.i4:int32(9))
44 stfld:Controls(GUIControllerDresser::selectedControl, ldloc:GUIControllerDresser(this), ldloc:int32[exp:Controls](var_13_84))
45 stloc:int32(var_14_94, ldfld:int32(GUIControllerDresser::Item, ldloc:GUIControllerDresser(this)))
46 stloc:int32(var_15_9C, ldfld:int32(GUIControllerDresser::Item, ldloc:GUIControllerDresser(this)))
47 stfld:int32(GUIControllerDresser::Item, ldloc:GUIControllerDresser(this), ldloc:int32(var_15_9C))
48}
49
50 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
51 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
52 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
53 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
54 --- End of inner exception stack trace ---
55 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
56 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
57*/;
58 }
59
60 // Token: 0x060004BF RID: 1215 RVA: 0x0000EC48 File Offset: 0x0000CE48
68
69 // Token: 0x0400044B RID: 1099
71
72 // Token: 0x0400044C RID: 1100
73 public int Item;
74
75 // Token: 0x020000C3 RID: 195
76 public enum Controls
77 {
78 // Token: 0x0400044E RID: 1102
79 Style,
80 // Token: 0x0400044F RID: 1103
81 Skin,
82 // Token: 0x04000450 RID: 1104
83 Eyes,
84 // Token: 0x04000451 RID: 1105
85 Shirt,
86 // Token: 0x04000452 RID: 1106
88 // Token: 0x04000453 RID: 1107
89 Pants,
90 // Token: 0x04000454 RID: 1108
91 Shoes,
92 // Token: 0x04000455 RID: 1109
93 Element,
94 // Token: 0x04000456 RID: 1110
95 Back,
96 // Token: 0x04000457 RID: 1111
97 Change
98 }
99}
class f__AnonymousType0<< Count > j__TPar
static void SetGridItemRegion(Rectangle region)
override Rectangle GetSelectedItemRegion()
GUIControllerDresser.Controls selectedControl
override GUIControllerItem Navigate(Vector2 navigationVector)
static int selClothes
Definition Main.cs:3483