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
BigProgressBarSystem.cs
Go to the documentation of this file.
1using System;
5using Terraria.IO;
6
8{
9 // Token: 0x02000AE4 RID: 2788
11 {
12 // Token: 0x060051ED RID: 20973 RVA: 0x00281DC4 File Offset: 0x0027FFC4
13 public bool IsTracking()
14 {
15 /*
16An exception occurred when decompiling this method (060051ED)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.UI.BigProgressBar.BigProgressBarSystem::IsTracking()
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 Block_0:
23 stloc:IBigProgressBar(var_0_06, ldfld:IBigProgressBar(BigProgressBarSystem::_currentBar, ldloc:BigProgressBarSystem(this)))
24}
25
26 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
27 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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35
36 // Token: 0x060051EE RID: 20974 RVA: 0x00281DD8 File Offset: 0x0027FFD8
37 public void Update()
38 {
39 if (this._currentBar == null)
40 {
42 if (this._currentBar == null)
43 {
44 return;
45 }
46 }
47 }
48
49 // Token: 0x060051EF RID: 20975 RVA: 0x00281DFC File Offset: 0x0027FFFC
50 public void Draw(SpriteBatch spriteBatch)
51 {
52 if (this._currentBar != null)
53 {
54 return;
55 }
56 }
57
58 // Token: 0x060051F0 RID: 20976 RVA: 0x00281E14 File Offset: 0x00280014
59 private void TryFindingNPCToTrack()
60 {
61 int num = 1;
62 if (num == 0)
63 {
64 }
65 Vector2 screenPosition = Main.screenPosition;
67 int screenWidth = Main.screenWidth;
68 int screenHeight = Main.screenHeight;
69 if (num == 0)
70 {
71 }
73 }
74
75 // Token: 0x060051F1 RID: 20977 RVA: 0x00281E74 File Offset: 0x00280074
76 public bool TryTracking(int npcIndex)
77 {
78 /*
79An exception occurred when decompiling this method (060051F1)
80
81ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.UI.BigProgressBar.BigProgressBarSystem::TryTracking(System.Int32)
82
83 ---> System.Exception: Basic block has to end with unconditional control flow.
84{
85 IL_0003:
86 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, class Terraria.GameContent.UI.BigProgressBar.IBigProgressBar>(var_0_09, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, class Terraria.GameContent.UI.BigProgressBar.IBigProgressBar>(BigProgressBarSystem::_bossBarsByNpcNetId, ldloc:BigProgressBarSystem(this)))
87 stloc:CommonBossBigProgressBar(var_1_10, ldfld:CommonBossBigProgressBar(BigProgressBarSystem::_bossBar, ldloc:BigProgressBarSystem(this)))
88 stfld:IBigProgressBar(BigProgressBarSystem::_currentBar, ldloc:BigProgressBarSystem(this), ldloc:CommonBossBigProgressBar[exp:IBigProgressBar](var_1_10))
89}
90
91 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
92 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
93 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
94 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
95 --- End of inner exception stack trace ---
96 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
97 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
98*/;
99 }
100
101 // Token: 0x060051F2 RID: 20978 RVA: 0x00281E9C File Offset: 0x0028009C
103 {
104 if (!true)
105 {
106 }
107 }
108
109 // Token: 0x060051F3 RID: 20979 RVA: 0x00281EAC File Offset: 0x002800AC
111 {
112 if (!true)
113 {
114 }
115 Preferences configuration = Main.Configuration;
116 }
117
118 // Token: 0x060051F4 RID: 20980 RVA: 0x00281EC4 File Offset: 0x002800C4
119 public static void ToggleShowText()
120 {
121 if (!true)
122 {
123 }
124 }
125
126 // Token: 0x060051F5 RID: 20981 RVA: 0x00281ED4 File Offset: 0x002800D4
128 {
129 if (!true)
130 {
131 }
132 base..ctor();
133 }
134
135 // Token: 0x060051F6 RID: 20982 RVA: 0x00281EEC File Offset: 0x002800EC
136 // Note: this type is marked as 'beforefieldinit'.
138 {
139 }
140
141 // Token: 0x04008A49 RID: 35401
143
144 // Token: 0x04008A4A RID: 35402
146
147 // Token: 0x04008A4B RID: 35403
149
150 // Token: 0x04008A4C RID: 35404
152
153 // Token: 0x04008A4D RID: 35405
155
156 // Token: 0x04008A4E RID: 35406
158
159 // Token: 0x04008A4F RID: 35407
161
162 // Token: 0x04008A50 RID: 35408
164
165 // Token: 0x04008A51 RID: 35409
167
168 // Token: 0x04008A52 RID: 35410
170
171 // Token: 0x04008A53 RID: 35411
173
174 // Token: 0x04008A54 RID: 35412
176
177 // Token: 0x04008A55 RID: 35413
179
180 // Token: 0x04008A56 RID: 35414
182
183 // Token: 0x04008A57 RID: 35415
185
186 // Token: 0x04008A58 RID: 35416
188
189 // Token: 0x04008A59 RID: 35417
190 public static bool ShowText;
191
192 // Token: 0x04008A5A RID: 35418
194
195 // Token: 0x04008A5B RID: 35419
196 private const string _preferencesKey = "ShowBossBarHealthText";
197 }
198}
class f__AnonymousType0<< Count > j__TPar
Vector2 Center
Definition Entity.cs:134
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int screenHeight
Definition Main.cs:2015
static int screenWidth
Definition Main.cs:2001
static Preferences Configuration
Definition Main.cs:2824
static Player LocalPlayer
Definition Main.cs:5267