terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Sandstorm.cs
Go to the documentation of this file.
1using System;
9
11{
12 [global::Cpp2ILInjected.Token(Token = "0x2000A56")]
13 public class Sandstorm
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x6004E28")]
16 [global::Cpp2ILInjected.Address(RVA = "0x8D24D8", Offset = "0x8D24D8", Length = "0x9C")]
17 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "UpdateTime", ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
20 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
21 private static bool HasSufficientWind()
22 {
23 throw null;
24 }
25
26 [global::Cpp2ILInjected.Token(Token = "0x6004E29")]
27 [global::Cpp2ILInjected.Address(RVA = "0x8D2574", Offset = "0x8D2574", Length = "0x48")]
28 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "ClearVisualPostProcessEffects", ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "clearWorld", ReturnType = typeof(void))]
30 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
31 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
32 public static void WorldClear()
33 {
34 throw null;
35 }
36
37 [global::Cpp2ILInjected.Token(Token = "0x6004E2A")]
38 [global::Cpp2ILInjected.Address(RVA = "0x8D25BC", Offset = "0x8D25BC", Length = "0x210")]
39 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
40 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "UpdateTime", ReturnType = typeof(void))]
41 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
42 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_LogicHost", ReturnType = typeof(bool))]
43 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "HasSufficientWind", ReturnType = typeof(bool))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "StartSandstorm", ReturnType = typeof(void))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "StopSandstorm", ReturnType = typeof(void))]
47 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "ChangeSeverityIntentions", ReturnType = typeof(void))]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "UpdateSeverity", ReturnType = typeof(void))]
49 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
50 public static void UpdateTime()
51 {
52 throw null;
53 }
54
55 [global::Cpp2ILInjected.Token(Token = "0x6004E2B")]
56 [global::Cpp2ILInjected.Address(RVA = "0x8D28B4", Offset = "0x8D28B4", Length = "0x1B0")]
57 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "UpdateTime", ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "StopSandstorm", ReturnType = typeof(void))]
59 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "NextFloat", MemberParameters = new object[] { typeof(UnifiedRandom) }, ReturnType = typeof(float))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetHost", ReturnType = typeof(bool))]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
64 {
65 typeof(int),
66 typeof(int),
67 typeof(int),
69 typeof(int),
70 typeof(float),
71 typeof(float),
72 typeof(float),
73 typeof(int),
74 typeof(int),
75 typeof(int)
76 }, ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
78 private static void ChangeSeverityIntentions()
79 {
80 throw null;
81 }
82
83 [global::Cpp2ILInjected.Token(Token = "0x6004E2C")]
84 [global::Cpp2ILInjected.Address(RVA = "0x8D2A64", Offset = "0x8D2A64", Length = "0x1A4")]
85 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
86 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "UpdateTime", ReturnType = typeof(void))]
87 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
88 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Sign", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(int))]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MathHelper), Member = "Clamp", MemberParameters = new object[]
90 {
91 typeof(float),
92 typeof(float),
93 typeof(float)
94 }, ReturnType = typeof(float))]
95 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
96 private static void UpdateSeverity()
97 {
98 throw null;
99 }
100
101 [global::Cpp2ILInjected.Token(Token = "0x6004E2D")]
102 [global::Cpp2ILInjected.Address(RVA = "0x8D2818", Offset = "0x8D2818", Length = "0x9C")]
103 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
104 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "UpdateTime", ReturnType = typeof(void))]
105 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
107 {
108 typeof(int),
109 typeof(int)
110 }, ReturnType = typeof(int))]
111 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
112 private static void StartSandstorm()
113 {
114 throw null;
115 }
116
117 [global::Cpp2ILInjected.Token(Token = "0x6004E2E")]
118 [global::Cpp2ILInjected.Address(RVA = "0x8D27CC", Offset = "0x8D27CC", Length = "0x4C")]
119 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "UpdateTime", ReturnType = typeof(void))]
120 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "ChangeSeverityIntentions", ReturnType = typeof(void))]
122 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
123 private static void StopSandstorm()
124 {
125 throw null;
126 }
127
128 [global::Cpp2ILInjected.Token(Token = "0x6004E2F")]
129 [global::Cpp2ILInjected.Address(RVA = "0x8D2C08", Offset = "0x8D2C08", Length = "0x428")]
130 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
131 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "EmitDust", ReturnType = typeof(void))]
132 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Center", ReturnType = typeof(Vector2))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectManager<>), Member = "Activate", MemberParameters = new object[]
136 {
137 typeof(string),
139 typeof(object[])
140 }, ReturnType = "T")]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectManager<>), Member = "Deactivate", MemberParameters = new object[]
142 {
143 typeof(string),
144 typeof(object[])
145 }, ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 34)]
147 public static void HandleEffectAndSky(bool toState)
148 {
149 throw null;
150 }
151
152 [global::Cpp2ILInjected.Token(Token = "0x6004E30")]
153 [global::Cpp2ILInjected.Address(RVA = "0x8D3030", Offset = "0x8D3030", Length = "0x100")]
154 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
155 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Dust), Member = "UpdateDust", ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Sandstorm), Member = "EmitDust", ReturnType = typeof(void))]
157 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
159 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneSandstorm", ReturnType = typeof(bool))]
160 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_bgStyle", ReturnType = typeof(int))]
161 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_bgDelay", ReturnType = typeof(int))]
162 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
163 public static bool ShouldSandstormDustPersist()
164 {
165 throw null;
166 }
167
168 [global::Cpp2ILInjected.Token(Token = "0x6004E31")]
169 [global::Cpp2ILInjected.Address(RVA = "0x8D3130", Offset = "0x8D3130", Length = "0xE00")]
170 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
171 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DoUpdate", MemberParameters = new object[] { typeof(GameTime) }, ReturnType = typeof(void))]
172 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
173 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_SceneMetrics", ReturnType = typeof(SceneMetrics))]
174 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
175 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "ShouldSandstormDustPersist", ReturnType = typeof(bool))]
176 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_UseStormEffects", ReturnType = typeof(bool))]
177 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Sandstorm), Member = "HandleEffectAndSky", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
178 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneBeach", ReturnType = typeof(bool))]
179 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
180 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Sign", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(int))]
181 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MathHelper), Member = "Lerp", MemberParameters = new object[]
182 {
183 typeof(float),
184 typeof(float),
185 typeof(float)
186 }, ReturnType = typeof(float))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MathHelper), Member = "Clamp", MemberParameters = new object[]
188 {
189 typeof(float),
190 typeof(float),
191 typeof(float)
192 }, ReturnType = typeof(float))]
193 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenWidth", ReturnType = typeof(int))]
194 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gfxQuality", ReturnType = typeof(float))]
195 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenHeight", ReturnType = typeof(int))]
196 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenPosition", ReturnType = typeof(Vector2))]
197 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
198 {
201 }, ReturnType = typeof(Vector2))]
202 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WeightedRandom<>), Member = ".ctor", ReturnType = typeof(void))]
203 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Color), Member = ".ctor", MemberParameters = new object[]
204 {
205 typeof(int),
206 typeof(int),
207 typeof(int),
208 typeof(int)
209 }, ReturnType = typeof(void))]
210 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SceneMetrics), Member = "GetTileCount", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(int))]
211 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WeightedRandom<>), Member = "Add", MemberParameters = new object[]
212 {
213 "T",
214 typeof(double)
215 }, ReturnType = typeof(void))]
216 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "NextFloat", MemberParameters = new object[] { typeof(UnifiedRandom) }, ReturnType = typeof(float))]
217 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
218 {
219 typeof(float),
220 typeof(float)
221 }, ReturnType = typeof(void))]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "InWorld", MemberParameters = new object[]
223 {
224 typeof(int),
225 typeof(int),
226 typeof(int)
227 }, ReturnType = typeof(bool))]
228 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
229 {
230 typeof(int),
231 typeof(int)
232 }, ReturnType = typeof(Tile))]
233 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_wall", ReturnType = typeof(ushort))]
234 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dust), Member = "NewDust", MemberParameters = new object[]
235 {
237 typeof(int),
238 typeof(int),
239 typeof(int),
240 typeof(float),
241 typeof(float),
242 typeof(int),
243 typeof(Color),
244 typeof(float)
245 }, ReturnType = typeof(int))]
246 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
247 {
249 typeof(float)
250 }, ReturnType = typeof(Vector2))]
251 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WeightedRandom<>), Member = "op_Implicit", MemberParameters = new object[] { "Terraria.Utilities.WeightedRandom`1<T>" }, ReturnType = "T")]
252 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "RandomVector2", MemberParameters = new object[]
253 {
255 typeof(float),
256 typeof(float)
257 }, ReturnType = typeof(Vector2))]
258 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 56)]
259 public static void EmitDust()
260 {
261 throw null;
262 }
263
264 [global::Cpp2ILInjected.Token(Token = "0x6004E32")]
265 [global::Cpp2ILInjected.Address(RVA = "0x8D3F30", Offset = "0x8D3F30", Length = "0x8")]
266 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
267 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
268 public Sandstorm()
269 {
270 throw null;
271 }
272
273 [global::Cpp2ILInjected.Token(Token = "0x40086DA")]
274 private const int SANDSTORM_DURATION_MINIMUM = 28800;
275
276 [global::Cpp2ILInjected.Token(Token = "0x40086DB")]
277 private const int SANDSTORM_DURATION_MAXIMUM = 86400;
278
279 [global::Cpp2ILInjected.Token(Token = "0x40086DC")]
280 public static bool Happening;
281
282 [global::Cpp2ILInjected.Token(Token = "0x40086DD")]
283 public static int TimeLeft;
284
285 [global::Cpp2ILInjected.Token(Token = "0x40086DE")]
286 public static float Severity;
287
288 [global::Cpp2ILInjected.Token(Token = "0x40086DF")]
289 public static float IntendedSeverity;
290
291 [global::Cpp2ILInjected.Token(Token = "0x40086E0")]
292 private static bool _effectsUp;
293 }
294}
class f__AnonymousType0<< Count > j__TPar
static void HandleEffectAndSky(bool toState)
Definition Sandstorm.cs:147