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
Dust.cs
Go to the documentation of this file.
1using System;
10
11namespace Terraria
12{
13 // Token: 0x020003EC RID: 1004
14 public class Dust
15 {
16 // Token: 0x06001AD1 RID: 6865 RVA: 0x0007138C File Offset: 0x0006F58C
17 public static void Reset()
18 {
19 if (!true)
20 {
21 }
22 }
23
24 // Token: 0x06001AD2 RID: 6866 RVA: 0x000021DB File Offset: 0x000003DB
25 public static Dust NewDustPerfect(Vector2 Position, int Type, [Optional] Vector2? Velocity, int Alpha = 0, [Optional] Color newColor, float Scale = 1f)
26 {
27 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
28 }
29
30 // Token: 0x06001AD3 RID: 6867 RVA: 0x000713AC File Offset: 0x0006F5AC
31 public static Dust NewDustDirect(Vector2 Position, int Width, int Height, int Type, float SpeedX = 0f, float SpeedY = 0f, int Alpha = 0, [Optional] Color newColor, float Scale = 1f)
32 {
33 /*
34An exception occurred when decompiling this method (06001AD3)
35
36ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Dust Terraria.Dust::NewDustDirect(Microsoft.Xna.Framework.Vector2,System.Int32,System.Int32,System.Int32,System.Single,System.Single,System.Int32,Microsoft.Xna.Framework.Graphics.Color,System.Single)
37
38 ---> System.Exception: Basic block has to end with unconditional control flow.
39{
40 IL_0003:
41 brtrue(IL_0000, ldc.i4:bool(1))
42}
43
44 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
45 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
46 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
47 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
48 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
49 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
50 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
51 --- End of inner exception stack trace ---
52 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
53 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
54*/;
55 }
56
57 // Token: 0x06001AD4 RID: 6868 RVA: 0x000713C0 File Offset: 0x0006F5C0
58 public static int NewDust(Vector2 Position, int Width, int Height, int Type, float SpeedX = 0f, float SpeedY = 0f, int Alpha = 0, [Optional] Color newColor, float Scale = 1f)
59 {
60 int num = 1;
61 if (num == 0)
62 {
63 }
64 bool gameMenu = Main.gameMenu;
65 if (num == 0)
66 {
67 }
68 long ticks = DateTime.Now.Ticks;
70 int num2 = 32640;
71 int num3 = 32768;
72 if (num2 == 0)
73 {
74 }
75 if (num2 == 0)
76 {
77 }
78 if (num3 == 0)
79 {
80 }
81 int num4;
82 if (num4 != 0)
83 {
84 return 6000;
85 }
86 if (!true)
87 {
88 }
89 int num5;
90 return num5;
91 }
92
93 // Token: 0x06001AD5 RID: 6869 RVA: 0x00071478 File Offset: 0x0006F678
94 public static Dust CloneDust(int dustIndex)
95 {
96 if (!true)
97 {
98 }
99 Dust dust;
100 return dust;
101 }
102
103 // Token: 0x06001AD6 RID: 6870 RVA: 0x0007148C File Offset: 0x0006F68C
104 public static Dust CloneDust(Dust rf)
105 {
106 for (;;)
107 {
108 int num = 1;
109 if (num == 0)
110 {
111 }
112 if (num != 0)
113 {
114 return;
115 }
116 }
117 }
118
119 // Token: 0x06001AD7 RID: 6871 RVA: 0x000714A4 File Offset: 0x0006F6A4
120 public static void SetNotActive(Dust dust)
121 {
122 if (dust.active)
123 {
124 int num = dust.dustIndex;
125 int num2 = 6000;
126 if (num == 0)
127 {
128 }
130 if (dust == null)
131 {
132 throw new ArrayTypeMismatchException();
133 }
134 }
135 }
136
137 // Token: 0x06001AD8 RID: 6872 RVA: 0x000714DC File Offset: 0x0006F6DC
138 public static Dust QuickDust(int x, int y, Color color)
139 {
140 if (!true)
141 {
142 }
143 Dust dust;
144 return dust;
145 }
146
147 // Token: 0x06001AD9 RID: 6873 RVA: 0x000714F0 File Offset: 0x0006F6F0
149 {
150 if (!true)
151 {
152 }
153 if (!true)
154 {
155 }
156 Dust dust;
157 return dust;
158 }
159
160 // Token: 0x06001ADA RID: 6874 RVA: 0x00071504 File Offset: 0x0006F704
162 {
163 if (!true)
164 {
165 }
166 if (divisions != 0)
167 {
168 }
169 if (!true)
170 {
171 }
172 if (divisions != 0)
173 {
174 }
175 if (!true)
176 {
177 }
178 if (divisions != 0)
179 {
180 }
181 if (!true)
182 {
183 }
184 if (divisions != 0)
185 {
186 }
187 }
188
189 // Token: 0x06001ADB RID: 6875 RVA: 0x00071534 File Offset: 0x0006F734
191 {
192 int num = 1;
193 if (num == 0)
194 {
195 }
196 Vector2 vector = itemRectangle.TopLeft();
197 Vector2 vector2 = itemRectangle.BottomRight();
198 long num2 = 0L;
199 int num3 = 16256;
200 long num4 = 0L;
201 if (num2 == 0L || num4 == 0L)
202 {
203 if (num == 0)
204 {
205 }
206 if (num == 0)
207 {
208 }
209 Dust dust;
210 dust.scale = (float)num3;
211 }
212 }
213
214 // Token: 0x06001ADC RID: 6876 RVA: 0x0007157C File Offset: 0x0006F77C
215 public static Dust QuickDust(Vector2 pos, Color color)
216 {
217 /*
218An exception occurred when decompiling this method (06001ADC)
219
220ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Dust Terraria.Dust::QuickDust(Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.Color)
221
222 ---> System.Exception: Basic block has to end with unconditional control flow.
223{
224 IL_0003:
225 brtrue(IL_0000, ldc.i4:bool(1))
226}
227
228 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
229 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
230 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
231 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
232 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
233 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
234 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
235 --- End of inner exception stack trace ---
236 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
237 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
238*/;
239 }
240
241 // Token: 0x06001ADD RID: 6877 RVA: 0x00071590 File Offset: 0x0006F790
242 public static Dust QuickDustSmall(Vector2 pos, Color color, bool floorPositionValues = false)
243 {
244 if (!true)
245 {
246 }
247 Dust dust;
248 dust.scale = (float)13107;
249 float x = dust.position.X;
250 float y = dust.position.Y;
251 return dust;
252 }
253
254 // Token: 0x06001ADE RID: 6878 RVA: 0x000715C8 File Offset: 0x0006F7C8
255 public static void QuickDustLine(Vector2 start, Vector2 end, float splits, Color color)
256 {
257 if (!true)
258 {
259 }
260 Dust dust;
261 dust.scale = (float)39322;
262 Dust dust2;
263 dust2.scale = (float)39322;
264 if (!true)
265 {
266 }
267 if (!true)
268 {
269 }
270 Dust dust3;
271 dust3.scale = (float)39322;
272 }
273
274 // Token: 0x06001ADF RID: 6879 RVA: 0x00071604 File Offset: 0x0006F804
275 public static int dustWater()
276 {
277 if (!true)
278 {
279 }
280 int waterStyle = Main.waterStyle;
281 return 33;
282 }
283
284 // Token: 0x06001AE0 RID: 6880 RVA: 0x00071620 File Offset: 0x0006F820
285 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
286 [Il2CppSetOption(Option.NullChecks, false)]
287 public static void UpdateDust()
288 {
289 if (!true)
290 {
291 }
294 bool flag2 = ChildSafety.DangerousDust(42189448);
295 int num;
296 if (num != 0)
297 {
298 return;
299 }
300 }
301
302 // Token: 0x06001AE1 RID: 6881 RVA: 0x000720E0 File Offset: 0x000702E0
303 private static void SetupAlpha(short id, Color value)
304 {
305 if (!true)
306 {
307 }
308 }
309
310 // Token: 0x06001AE2 RID: 6882 RVA: 0x000720F0 File Offset: 0x000702F0
311 public static void InitAlphaTable()
312 {
313 if (!true)
314 {
315 }
316 }
317
318 // Token: 0x06001AE3 RID: 6883 RVA: 0x00072164 File Offset: 0x00070364
319 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
320 [Il2CppSetOption(Option.NullChecks, false)]
322 {
323 if (!true)
324 {
325 }
326 }
327
328 // Token: 0x06001AE4 RID: 6884 RVA: 0x00072358 File Offset: 0x00070558
330 {
331 int num = this.alpha;
332 int num2 = this.type;
333 byte r = this.color.R;
334 int num3 = 255;
335 int num4 = Math.Min(0, num3);
336 byte g = this.color.G;
337 int num5 = 255;
338 int num6 = Math.Min(num4, num5);
339 byte b = this.color.B;
340 int num7 = 255;
341 int num8 = Math.Min(num6, num7);
342 Color color = this.color;
343 if (color == null)
344 {
345 }
346 return color;
347 }
348
349 // Token: 0x06001AE5 RID: 6885 RVA: 0x0007252C File Offset: 0x0007072C
351 {
352 int num = this.type;
353 }
354
355 // Token: 0x06001AE6 RID: 6886 RVA: 0x000725A4 File Offset: 0x000707A4
356 public float GetVisualRotation()
357 {
358 /*
359An exception occurred when decompiling this method (06001AE6)
360
361ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Dust::GetVisualRotation()
362
363 ---> System.Exception: Basic block has to end with unconditional control flow.
364{
365 Block_0:
366 stloc:int32(var_0_06, ldfld:int32(Dust::type, ldloc:Dust(this)))
367 stloc:float32(var_1_0D, ldfld:float32(Dust::rotation, ldloc:Dust(this)))
368}
369
370 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
371 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
372 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
373 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
374 --- End of inner exception stack trace ---
375 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
376 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
377*/;
378 }
379
380 // Token: 0x06001AE7 RID: 6887 RVA: 0x000725C0 File Offset: 0x000707C0
381 public float GetVisualScale()
382 {
383 /*
384An exception occurred when decompiling this method (06001AE7)
385
386ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Dust::GetVisualScale()
387
388 ---> System.Exception: Basic block has to end with unconditional control flow.
389{
390 Block_0:
391 stloc:int32(var_0_06, ldfld:int32(Dust::type, ldloc:Dust(this)))
392 stloc:float32(var_1_0D, ldfld:float32(Dust::scale, ldloc:Dust(this)))
393}
394
395 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
396 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
397 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
398 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
399 --- End of inner exception stack trace ---
400 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
401 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
402*/;
403 }
404
405 // Token: 0x06001AE8 RID: 6888 RVA: 0x000725DC File Offset: 0x000707DC
406 public Dust()
407 {
408 }
409
410 // Token: 0x06001AE9 RID: 6889 RVA: 0x000725F0 File Offset: 0x000707F0
411 // Note: this type is marked as 'beforefieldinit'.
412 static Dust()
413 {
414 }
415
416 // Token: 0x04002806 RID: 10246
417 public static int activeDustCount;
418
419 // Token: 0x04002807 RID: 10247
420 public static Dust[] freeDust;
421
422 // Token: 0x04002808 RID: 10248
423 public static int freeDustCount;
424
425 // Token: 0x04002809 RID: 10249
426 public static float dCount;
427
428 // Token: 0x0400280A RID: 10250
429 public static int lavaBubbles;
430
431 // Token: 0x0400280B RID: 10251
432 public static int SandStormCount;
433
434 // Token: 0x0400280C RID: 10252
435 public int dustIndex;
436
437 // Token: 0x0400280D RID: 10253
439
440 // Token: 0x0400280E RID: 10254
442
443 // Token: 0x0400280F RID: 10255
444 public float fadeIn;
445
446 // Token: 0x04002810 RID: 10256
447 public bool noGravity;
448
449 // Token: 0x04002811 RID: 10257
450 public float scale;
451
452 // Token: 0x04002812 RID: 10258
453 public float rotation;
454
455 // Token: 0x04002813 RID: 10259
456 public bool noLight;
457
458 // Token: 0x04002814 RID: 10260
459 public bool noLightEmittence;
460
461 // Token: 0x04002815 RID: 10261
462 public bool active;
463
464 // Token: 0x04002816 RID: 10262
465 public int type;
466
467 // Token: 0x04002817 RID: 10263
468 public Color color;
469
470 // Token: 0x04002818 RID: 10264
471 public int alpha;
472
473 // Token: 0x04002819 RID: 10265
475
476 // Token: 0x0400281A RID: 10266
478
479 // Token: 0x0400281B RID: 10267
480 public object customData;
481
482 // Token: 0x0400281C RID: 10268
483 public bool firstFrame;
484
485 // Token: 0x0400281D RID: 10269
486 private static bool[] StaticAlpha;
487
488 // Token: 0x0400281E RID: 10270
489 private static Color[] StaticAlphaValue;
490 }
491}
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static float dCount
Definition Dust.cs:426
static int SandStormCount
Definition Dust.cs:432
Vector2 position
Definition Dust.cs:438
static void Reset()
Definition Dust.cs:17
static void QuickDustLine(Vector2 start, Vector2 end, float splits, Color color)
Definition Dust.cs:255
bool noGravity
Definition Dust.cs:447
static Dust QuickDustSmall(Vector2 pos, Color color, bool floorPositionValues=false)
Definition Dust.cs:242
static int freeDustCount
Definition Dust.cs:423
static Color[] StaticAlphaValue
Definition Dust.cs:489
static Dust CloneDust(int dustIndex)
Definition Dust.cs:94
static Dust QuickDust(Vector2 pos, Color color)
Definition Dust.cs:215
bool noLightEmittence
Definition Dust.cs:459
static Dust()
Definition Dust.cs:412
int alpha
Definition Dust.cs:471
static bool[] StaticAlpha
Definition Dust.cs:486
static void InitAlphaTable()
Definition Dust.cs:311
static void QuickBox(Vector2 topLeft, Vector2 bottomRight, int divisions, Color color, Action< Dust > manipulator)
Definition Dust.cs:161
Color GetAlpha(Color newColor)
Definition Dust.cs:329
static int dustWater()
Definition Dust.cs:275
bool active
Definition Dust.cs:462
static void UpdateDust()
Definition Dust.cs:287
void GetAlpha(Color newColor)
Definition Dust.cs:321
int dustIndex
Definition Dust.cs:435
bool noLight
Definition Dust.cs:456
ArmorShaderData shader
Definition Dust.cs:477
float scale
Definition Dust.cs:450
float GetVisualScale()
Definition Dust.cs:381
static Dust NewDustDirect(Vector2 Position, int Width, int Height, int Type, float SpeedX=0f, float SpeedY=0f, int Alpha=0, [Optional] Color newColor, float Scale=1f)
Definition Dust.cs:31
static Dust[] freeDust
Definition Dust.cs:420
bool firstFrame
Definition Dust.cs:483
void GetColor(Color newColor)
Definition Dust.cs:350
static int NewDust(Vector2 Position, int Width, int Height, int Type, float SpeedX=0f, float SpeedY=0f, int Alpha=0, [Optional] Color newColor, float Scale=1f)
Definition Dust.cs:58
object customData
Definition Dust.cs:480
static void DrawDebugBox(Rectangle itemRectangle)
Definition Dust.cs:190
Rectangle frame
Definition Dust.cs:474
static Dust CloneDust(Dust rf)
Definition Dust.cs:104
static Dust QuickDust(Point tileCoords, Color color)
Definition Dust.cs:148
static void SetupAlpha(short id, Color value)
Definition Dust.cs:303
Color color
Definition Dust.cs:468
static Dust NewDustPerfect(Vector2 Position, int Type, [Optional] Vector2? Velocity, int Alpha=0, [Optional] Color newColor, float Scale=1f)
Definition Dust.cs:25
static int activeDustCount
Definition Dust.cs:417
float GetVisualRotation()
Definition Dust.cs:356
float fadeIn
Definition Dust.cs:444
static int lavaBubbles
Definition Dust.cs:429
Vector2 velocity
Definition Dust.cs:441
static void SetNotActive(Dust dust)
Definition Dust.cs:120
float rotation
Definition Dust.cs:453
static Dust QuickDust(int x, int y, Color color)
Definition Dust.cs:138
static bool DangerousDust(int id)
static bool NetHostOnly
Definition Main.cs:5482
static int waterStyle
Definition Main.cs:1651
static bool gameMenu
Definition Main.cs:2673
static DateTime Now
Definition DateTime.cs:530