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
Sandstorm.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x02000A56 RID: 2646
6 public class Sandstorm
7 {
8 // Token: 0x06004E28 RID: 20008 RVA: 0x00275D94 File Offset: 0x00273F94
9 private static bool HasSufficientWind()
10 {
11 /*
12An exception occurred when decompiling this method (06004E28)
13
14ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Events.Sandstorm::HasSufficientWind()
15
16 ---> System.Exception: Basic block has to end with unconditional control flow.
17{
18 IL_0000:
19 brtrue(IL_0000, ldc.i4:bool(1))
20}
21
22 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
23 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
24 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
25 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
26 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
27 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
28 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
29 --- End of inner exception stack trace ---
30 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
31 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
32*/;
33 }
34
35 // Token: 0x06004E29 RID: 20009 RVA: 0x00275DA4 File Offset: 0x00273FA4
36 public static void WorldClear()
37 {
38 }
39
40 // Token: 0x06004E2A RID: 20010 RVA: 0x00275DB4 File Offset: 0x00273FB4
41 public static void UpdateTime()
42 {
44 if (20865 == 0)
45 {
46 }
47 bool flag = Sandstorm.HasSufficientWind();
48 }
49
50 // Token: 0x06004E2B RID: 20011 RVA: 0x00275E2C File Offset: 0x0027402C
51 private static void ChangeSeverityIntentions()
52 {
53 }
54
55 // Token: 0x06004E2C RID: 20012 RVA: 0x00275E48 File Offset: 0x00274048
56 private static void UpdateSeverity()
57 {
58 if (!true)
59 {
60 }
61 if (!true)
62 {
63 }
64 }
65
66 // Token: 0x06004E2D RID: 20013 RVA: 0x00275E6C File Offset: 0x0027406C
67 private static void StartSandstorm()
68 {
70 }
71
72 // Token: 0x06004E2E RID: 20014 RVA: 0x00275E80 File Offset: 0x00274080
73 private static void StopSandstorm()
74 {
76 }
77
78 // Token: 0x06004E2F RID: 20015 RVA: 0x00275E94 File Offset: 0x00274094
79 public static void HandleEffectAndSky(bool toState)
80 {
81 }
82
83 // Token: 0x06004E30 RID: 20016 RVA: 0x00275EAC File Offset: 0x002740AC
84 public static bool ShouldSandstormDustPersist()
85 {
86 /*
87An exception occurred when decompiling this method (06004E30)
88
89ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Events.Sandstorm::ShouldSandstormDustPersist()
90
91 ---> System.Exception: Basic block has to end with unconditional control flow.
92{
93 Block_0:
94 stloc:int32(var_1_07, callgetter:int32(Main::get_myPlayer))
95 stloc:int32(var_4_0F, callgetter:int32(Main::get_bgStyle))
96 stloc:int32(var_6_19, callgetter:int32(Main::get_bgStyle))
97 stloc:int32(var_8_23, callgetter:int32(Main::get_bgDelay))
98}
99
100 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
101 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
102 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
103 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
104 --- End of inner exception stack trace ---
105 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
106 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
107*/;
108 }
109
110 // Token: 0x06004E31 RID: 20017 RVA: 0x00275EE0 File Offset: 0x002740E0
111 public static void EmitDust()
112 {
113 int num = 1;
114 if (num == 0)
115 {
116 }
117 if (num == 0)
118 {
119 if (num == 0)
120 {
121 }
122 int <SandTileCount>k__BackingField = Main.SceneMetrics.<SandTileCount>k__BackingField;
123 int myPlayer = Main.myPlayer;
126 return;
127 }
128 }
129
130 // Token: 0x06004E32 RID: 20018 RVA: 0x002761F4 File Offset: 0x002743F4
131 public Sandstorm()
132 {
133 }
134
135 // Token: 0x040086DA RID: 34522
136 private const int SANDSTORM_DURATION_MINIMUM = 28800;
137
138 // Token: 0x040086DB RID: 34523
139 private const int SANDSTORM_DURATION_MAXIMUM = 86400;
140
141 // Token: 0x040086DC RID: 34524
142 public static bool Happening;
143
144 // Token: 0x040086DD RID: 34525
145 public static int TimeLeft;
146
147 // Token: 0x040086DE RID: 34526
148 public static float Severity;
149
150 // Token: 0x040086DF RID: 34527
151 public static float IntendedSeverity;
152
153 // Token: 0x040086E0 RID: 34528
154 private static bool _effectsUp;
155 }
156}
class f__AnonymousType0<< Count > j__TPar
static void HandleEffectAndSky(bool toState)
Definition Sandstorm.cs:79
static SceneMetrics SceneMetrics
Definition Main.cs:1791
static int myPlayer
Definition Main.cs:2337
static bool UseStormEffects
Definition Main.cs:475
static bool LogicHost
Definition Main.cs:5469