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
AmbientSky.cs
Go to the documentation of this file.
1using System;
13
15{
16 // Token: 0x020009B4 RID: 2484
17 public class AmbientSky : CustomSky
18 {
19 // Token: 0x06004983 RID: 18819 RVA: 0x002628D8 File Offset: 0x00260AD8
20 public override void Activate(Vector2 position, params object[] args)
21 {
22 this._isActive = true;
23 }
24
25 // Token: 0x06004984 RID: 18820 RVA: 0x002628EC File Offset: 0x00260AEC
26 public override void Deactivate(params object[] args)
27 {
28 }
29
30 // Token: 0x06004985 RID: 18821 RVA: 0x002628FC File Offset: 0x00260AFC
32 {
33 if (!true)
34 {
35 }
36 return true;
37 }
38
39 // Token: 0x06004986 RID: 18822 RVA: 0x00262910 File Offset: 0x00260B10
40 public override void Update(GameTime gameTime)
41 {
42 int num = 1;
43 if (num == 0)
44 {
45 }
46 if (num == 0)
47 {
48 int frameCounter = this._frameCounter;
49 this._frameCounter = frameCounter;
50 if (frameCounter == 0)
51 {
52 }
54 if (frameCounter == 0)
55 {
56 }
58 return;
59 }
60 }
61
62 // Token: 0x06004987 RID: 18823 RVA: 0x002629B4 File Offset: 0x00260BB4
63 public override void Draw(SpriteBatch spriteBatch, float minDepth, float maxDepth)
64 {
65 int num = 1;
66 if (num == 0)
67 {
68 }
69 bool gameMenu = Main.gameMenu;
70 if (num == 0)
71 {
72 }
73 if (num == 0)
74 {
75 if (num == 0)
76 {
77 }
78 this._entities.Clear();
79 }
81 }
82
83 // Token: 0x06004988 RID: 18824 RVA: 0x00262A20 File Offset: 0x00260C20
84 public override bool IsActive()
85 {
86 return this._isActive;
87 }
88
89 // Token: 0x06004989 RID: 18825 RVA: 0x00262A34 File Offset: 0x00260C34
90 public override void Reset()
91 {
92 }
93
94 // Token: 0x0600498A RID: 18826 RVA: 0x00262A44 File Offset: 0x00260C44
95 public void Spawn(Player player, SkyEntityType type, int seed)
96 {
97 }
98
99 // Token: 0x0600498B RID: 18827 RVA: 0x00262AE4 File Offset: 0x00260CE4
100 public AmbientSky()
101 {
102 }
103
104 // Token: 0x04008468 RID: 33896
105 private bool _isActive;
106
107 // Token: 0x04008469 RID: 33897
109
110 // Token: 0x0400846A RID: 33898
111 private int _frameCounter;
112
113 // Token: 0x020009B5 RID: 2485
114 private abstract class SkyEntity
115 {
116 // Token: 0x1700084F RID: 2127
117 // (get) Token: 0x0600498C RID: 18828 RVA: 0x00262AF8 File Offset: 0x00260CF8
119 {
120 get
121 {
122 Asset<Texture2D> texture = this.Texture;
124 return rectangle;
125 }
126 }
127
128 // Token: 0x0600498D RID: 18829 RVA: 0x00262B10 File Offset: 0x00260D10
129 protected void NextFrame()
130 {
131 byte currentRow = this.Frame._currentRow;
132 byte rowCount = this.Frame.RowCount;
134 }
135
136 // Token: 0x0600498E RID: 18830
137 public abstract Color GetColor(Color backgroundColor);
138
139 // Token: 0x0600498F RID: 18831
140 public abstract void Update(int frameCount);
141
142 // Token: 0x06004990 RID: 18832 RVA: 0x00262B44 File Offset: 0x00260D44
144 {
145 if (!true)
146 {
147 }
148 Vector2 center = Main.Camera.Center;
149 if (!true)
150 {
151 }
152 Vector2 center2 = Main.Camera.Center;
153 float depth = this.Depth;
154 this.Position.X = depth;
155 }
156
157 // Token: 0x06004991 RID: 18833
158 public abstract Vector2 GetDrawPosition();
159
160 // Token: 0x06004992 RID: 18834 RVA: 0x00262B90 File Offset: 0x00260D90
161 public virtual void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
162 {
163 this.CommonDraw(spriteBatch, depthScale, minDepth, maxDepth);
164 }
165
166 // Token: 0x06004993 RID: 18835 RVA: 0x00262BA8 File Offset: 0x00260DA8
167 public void CommonDraw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
168 {
169 float depth = this.Depth;
171 if (!true)
172 {
173 }
174 Vector2 vector = this.SourceRectangle.Size();
175 float depth2 = this.Depth;
176 Vector2 unscaledPosition = Main.Camera.UnscaledPosition;
177 Asset<Texture2D> texture = this.Texture;
179 float rotation = this.Rotation;
181 }
182
183 // Token: 0x06004994 RID: 18836 RVA: 0x00262C10 File Offset: 0x00260E10
185 {
186 /*
187An exception occurred when decompiling this method (06004994)
188
189ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 Terraria.GameContent.Skies.AmbientSky/SkyEntity::GetDrawPositionByDepth()
190
191 ---> System.Exception: Basic block has to end with unconditional control flow.
192{
193 Block_0:
194 stloc:Vector2(var_1_0C, callgetter:Vector2(Camera::get_Center, callgetter:Camera(Main::get_Camera)))
195 stloc:float32(var_4_15, ldfld:float32(SkyEntity::Depth, ldloc:SkyEntity(this)))
196 stloc:Vector2(var_8_27, callgetter:Vector2(Camera::get_Center, callgetter:Camera(Main::get_Camera)))
197}
198
199 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
200 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
201 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
202 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
203 --- End of inner exception stack trace ---
204 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
205 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
206*/;
207 }
208
209 // Token: 0x06004995 RID: 18837 RVA: 0x00262C48 File Offset: 0x00260E48
211 {
213 if (!true)
214 {
215 }
216 Vector2 unscaledPosition = Main.Camera.UnscaledPosition;
217 if (!true)
218 {
219 }
221 return float.Epsilon;
222 }
223
224 // Token: 0x06004996 RID: 18838 RVA: 0x00262C80 File Offset: 0x00260E80
225 protected SkyEntity()
226 {
227 }
228
229 // Token: 0x0400846B RID: 33899
231
232 // Token: 0x0400846C RID: 33900
234
235 // Token: 0x0400846D RID: 33901
237
238 // Token: 0x0400846E RID: 33902
239 public float Depth;
240
241 // Token: 0x0400846F RID: 33903
243
244 // Token: 0x04008470 RID: 33904
245 public bool IsActive = true;
246
247 // Token: 0x04008471 RID: 33905
248 public float Rotation;
249 }
250
251 // Token: 0x020009B6 RID: 2486
253 {
254 // Token: 0x06004997 RID: 18839 RVA: 0x00262C9C File Offset: 0x00260E9C
256 {
257 this.IsActive = true;
258 base..ctor();
260 }
261
262 // Token: 0x06004998 RID: 18840 RVA: 0x00262CC4 File Offset: 0x00260EC4
263 public override void Update(int frameCount)
264 {
266 this.TimeEntitySpawnedIn = frameCount;
267 int lifeTime = this.LifeTime;
268 this.UpdateOpacity(frameCount);
269 int frameOffset = this.FrameOffset;
270 int framingSpeed = this.FramingSpeed;
271 if (frameOffset == 0)
272 {
273 byte currentRow = this.Frame._currentRow;
274 byte rowCount = this.Frame.RowCount;
276 }
277 float x = this.Position.X;
278 float y = this.Position.Y;
279 float x2 = this.Velocity.X;
280 float y2 = this.Velocity.Y;
281 }
282
283 // Token: 0x06004999 RID: 18841 RVA: 0x00262D60 File Offset: 0x00260F60
284 public virtual void UpdateVelocity(int frameCount)
285 {
286 }
287
288 // Token: 0x0600499A RID: 18842 RVA: 0x00262D70 File Offset: 0x00260F70
289 private void UpdateOpacity(int frameCount)
290 {
292 int lifeTime = this.LifeTime;
295 }
296
297 // Token: 0x0600499B RID: 18843 RVA: 0x00262DA4 File Offset: 0x00260FA4
298 private bool IsMovementDone(int frameCount)
299 {
300 /*
301An exception occurred when decompiling this method (0600499B)
302
303ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Skies.AmbientSky/FadingSkyEntity::IsMovementDone(System.Int32)
304
305 ---> System.Exception: Basic block has to end with unconditional control flow.
306{
307 Block_0:
308 stloc:int32(var_0_06, ldfld:int32(FadingSkyEntity::TimeEntitySpawnedIn, ldloc:FadingSkyEntity(this)))
309 stfld:int32(FadingSkyEntity::TimeEntitySpawnedIn, ldloc:FadingSkyEntity(this), ldloc:int32(frameCount))
310 stloc:int32(var_1_14, ldfld:int32(FadingSkyEntity::LifeTime, ldloc:FadingSkyEntity(this)))
311}
312
313 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
314 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
315 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
316 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
317 --- End of inner exception stack trace ---
318 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
319 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
320*/;
321 }
322
323 // Token: 0x0600499C RID: 18844 RVA: 0x00262DCC File Offset: 0x00260FCC
324 public override Color GetColor(Color backgroundColor)
325 {
326 if (!true)
327 {
328 }
330 float opacity = this.Opacity;
332 float num = base.Helper_GetOpacityWithAccountingForOceanWaterLine();
333 return 1;
334 }
335
336 // Token: 0x0600499D RID: 18845 RVA: 0x00262DFC File Offset: 0x00260FFC
338 {
339 int lifeTime = this.LifeTime;
341 int num = 32640;
344 }
345
346 // Token: 0x0600499E RID: 18846 RVA: 0x00262E2C File Offset: 0x0026102C
347 public override Vector2 GetDrawPosition()
348 {
349 float x = this.Position.X;
350 float y = this.Position.Y;
351 Vector2 vector;
352 return vector;
353 }
354
355 // Token: 0x04008472 RID: 33906
356 protected int LifeTime;
357
358 // Token: 0x04008473 RID: 33907
359 protected Vector2 Velocity;
360
361 // Token: 0x04008474 RID: 33908
362 protected int FramingSpeed;
363
364 // Token: 0x04008475 RID: 33909
365 protected int TimeEntitySpawnedIn;
366
367 // Token: 0x04008476 RID: 33910
368 protected float Opacity;
369
370 // Token: 0x04008477 RID: 33911
371 protected float BrightnessLerper;
372
373 // Token: 0x04008478 RID: 33912
374 protected float FinalOpacityMultiplier;
375
376 // Token: 0x04008479 RID: 33913
378
379 // Token: 0x0400847A RID: 33914
381
382 // Token: 0x0400847B RID: 33915
383 protected int FrameOffset;
384 }
385
386 // Token: 0x020009B7 RID: 2487
388 {
389 // Token: 0x0600499F RID: 18847 RVA: 0x00262E54 File Offset: 0x00261054
391 {
392 int num = 1;
393 this.IsActive = num != 0;
394 base..ctor();
395 int num2 = 26214;
397 int num3 = 1;
398 if (num3 == 0)
399 {
400 }
402 }
403
404 // Token: 0x060049A0 RID: 18848 RVA: 0x00262EFC File Offset: 0x002610FC
405 public override void UpdateVelocity(int frameCount)
406 {
407 if (!true)
408 {
409 }
410 if (!true)
411 {
412 }
414 }
415
416 // Token: 0x060049A1 RID: 18849 RVA: 0x00262F18 File Offset: 0x00261118
417 public override void Update(int frameCount)
418 {
419 int num = 1;
420 base.Update(frameCount);
421 if (num == 0)
422 {
423 }
425 if (num == 0)
426 {
427 }
428 int lifeTime = this.LifeTime;
430 int num2 = 32640;
433 }
434 }
435
436 // Token: 0x020009B8 RID: 2488
438 {
439 // Token: 0x060049A2 RID: 18850 RVA: 0x00262F64 File Offset: 0x00261164
440 public LostKiteSkyEntity(Player player, FastRandom random)
441 {
442 int num = 1;
443 this.IsActive = num != 0;
444 base..ctor();
445 int num2 = 26214;
447 int num3 = 1;
448 if (num3 == 0)
449 {
450 }
452 }
453
454 // Token: 0x060049A3 RID: 18851 RVA: 0x00263000 File Offset: 0x00261200
455 public override void UpdateVelocity(int frameCount)
456 {
457 if (!true)
458 {
459 }
460 if (!true)
461 {
462 }
463 if (!true)
464 {
465 }
467 this.Velocity = 1;
468 }
469
470 // Token: 0x060049A4 RID: 18852 RVA: 0x00263024 File Offset: 0x00261224
471 public override void Update(int frameCount)
472 {
473 if (!true)
474 {
475 }
476 int num = 1;
477 if (num == 0)
478 {
479 }
480 int num2;
481 if (num != 0)
482 {
483 num2 = 4;
485 }
486 if (num2 == 0)
487 {
488 }
489 int num3 = 1;
490 if (num3 == 0)
491 {
492 }
494 base.Update(frameCount);
495 if (num3 == 0)
496 {
497 }
498 int lifeTime = this.LifeTime;
500 int num4 = 32640;
503 }
504 }
505
506 // Token: 0x020009B9 RID: 2489
508 {
509 // Token: 0x060049A5 RID: 18853 RVA: 0x00263084 File Offset: 0x00261284
510 public PegasusSkyEntity(Player player, FastRandom random)
511 {
512 int num = 1;
513 this.IsActive = num != 0;
514 base..ctor();
515 int num2 = 26214;
517 int num3 = 1;
518 if (num3 == 0)
519 {
520 }
522 }
523
524 // Token: 0x060049A6 RID: 18854 RVA: 0x002630FC File Offset: 0x002612FC
525 public override void UpdateVelocity(int frameCount)
526 {
527 if (!true)
528 {
529 }
530 if (!true)
531 {
532 }
534 }
535
536 // Token: 0x060049A7 RID: 18855 RVA: 0x00263118 File Offset: 0x00261318
537 public override void Update(int frameCount)
538 {
539 int num = 1;
540 base.Update(frameCount);
541 if (num == 0)
542 {
543 }
545 if (num == 0)
546 {
547 }
548 int lifeTime = this.LifeTime;
550 int num2 = 32640;
553 }
554
555 // Token: 0x060049A8 RID: 18856 RVA: 0x00263164 File Offset: 0x00261364
556 public override Color GetColor(Color backgroundColor)
557 {
558 /*
559An exception occurred when decompiling this method (060049A8)
560
561ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.GameContent.Skies.AmbientSky/PegasusSkyEntity::GetColor(Microsoft.Xna.Framework.Graphics.Color)
562
563 ---> System.Exception: Basic block has to end with unconditional control flow.
564{
565 Block_0:
566 stloc:Color(var_0_07, call:Color(FadingSkyEntity::GetColor, ldloc:PegasusSkyEntity[exp:FadingSkyEntity](this), ldloc:Color(backgroundColor)))
567 stloc:float32[](var_2_0F, callgetter:float32[](Main::get_bgAlphaFrontLayer))
568}
569
570 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
571 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
572 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
573 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
574 --- End of inner exception stack trace ---
575 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
576 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
577*/;
578 }
579 }
580
581 // Token: 0x020009BA RID: 2490
583 {
584 // Token: 0x060049A9 RID: 18857 RVA: 0x00263180 File Offset: 0x00261380
585 public VultureSkyEntity(Player player, FastRandom random)
586 {
587 int num = 1;
588 this.IsActive = num != 0;
589 base..ctor();
590 int num2 = 26214;
592 int num3 = 1;
593 if (num3 == 0)
594 {
595 }
597 }
598
599 // Token: 0x060049AA RID: 18858 RVA: 0x002631F8 File Offset: 0x002613F8
600 public override void UpdateVelocity(int frameCount)
601 {
602 if (!true)
603 {
604 }
605 if (!true)
606 {
607 }
609 }
610
611 // Token: 0x060049AB RID: 18859 RVA: 0x00263214 File Offset: 0x00261414
612 public override void Update(int frameCount)
613 {
614 int num = 1;
615 base.Update(frameCount);
616 if (num == 0)
617 {
618 }
620 if (num == 0)
621 {
622 }
623 int lifeTime = this.LifeTime;
625 int num2 = 32640;
628 }
629
630 // Token: 0x060049AC RID: 18860 RVA: 0x00263260 File Offset: 0x00261460
631 public override Color GetColor(Color backgroundColor)
632 {
633 /*
634An exception occurred when decompiling this method (060049AC)
635
636ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.GameContent.Skies.AmbientSky/VultureSkyEntity::GetColor(Microsoft.Xna.Framework.Graphics.Color)
637
638 ---> System.Exception: Basic block has to end with unconditional control flow.
639{
640 Block_0:
641 stloc:float32[](var_2_07, callgetter:float32[](Main::get_bgAlphaFrontLayer))
642 stloc:float32[](var_4_0F, callgetter:float32[](Main::get_bgAlphaFrontLayer))
643}
644
645 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
646 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
647 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
648 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
649 --- End of inner exception stack trace ---
650 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
651 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
652*/;
653 }
654 }
655
656 // Token: 0x020009BB RID: 2491
658 {
659 // Token: 0x060049AD RID: 18861 RVA: 0x00263280 File Offset: 0x00261480
660 public PixiePosseSkyEntity(Player player, FastRandom random)
661 {
662 int num = 1;
663 this.pixieType = num;
664 this.IsActive = num != 0;
665 base..ctor();
666 int num2 = 26214;
668 int num3 = 1;
669 if (num3 == 0)
670 {
671 }
673 }
674
675 // Token: 0x060049AE RID: 18862 RVA: 0x00263314 File Offset: 0x00261514
676 public override void UpdateVelocity(int frameCount)
677 {
678 if (!true)
679 {
680 }
681 if (!true)
682 {
683 }
685 }
686
687 // Token: 0x060049AF RID: 18863 RVA: 0x00263330 File Offset: 0x00261530
688 public override void Update(int frameCount)
689 {
690 base.Update(frameCount);
691 int num = this.pixieType;
692 if (num == 0)
693 {
694 }
695 if (num != 0)
696 {
697 int num2 = this.pixieType;
698 if (num2 == 0)
699 {
700 }
701 if (num2 == 0)
702 {
703 if (num2 == 0)
704 {
705 }
707 if (num2 == 0)
708 {
709 }
710 }
711 }
712 int lifeTime = this.LifeTime;
714 int num3 = 32640;
717 }
718
719 // Token: 0x060049B0 RID: 18864 RVA: 0x00263394 File Offset: 0x00261594
720 public override void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
721 {
722 base.CommonDraw(spriteBatch, depthScale, minDepth, maxDepth);
723 }
724
725 // Token: 0x0400847C RID: 33916
726 private int pixieType;
727 }
728
729 // Token: 0x020009BC RID: 2492
731 {
732 // Token: 0x060049B1 RID: 18865 RVA: 0x002633AC File Offset: 0x002615AC
733 public BirdsPackSkyEntity(Player player, FastRandom random)
734 {
735 int num = 1;
736 this.IsActive = num != 0;
737 base..ctor();
738 int num2 = 26214;
740 int num3 = 1;
741 if (num3 == 0)
742 {
743 }
745 }
746
747 // Token: 0x060049B2 RID: 18866 RVA: 0x00263420 File Offset: 0x00261620
748 public override void UpdateVelocity(int frameCount)
749 {
750 if (!true)
751 {
752 }
753 if (!true)
754 {
755 }
757 }
758
759 // Token: 0x060049B3 RID: 18867 RVA: 0x0026343C File Offset: 0x0026163C
760 public override void Update(int frameCount)
761 {
762 int num = 1;
763 base.Update(frameCount);
764 if (num == 0)
765 {
766 }
768 if (num == 0)
769 {
770 }
771 int lifeTime = this.LifeTime;
773 int num2 = 32640;
776 }
777 }
778
779 // Token: 0x020009BD RID: 2493
781 {
782 // Token: 0x060049B4 RID: 18868 RVA: 0x00263488 File Offset: 0x00261688
784 {
785 int num = 1;
786 this.IsActive = num != 0;
787 base..ctor();
788 int num2 = 26214;
790 int num3 = 1;
791 if (num3 == 0)
792 {
793 }
795 }
796
797 // Token: 0x060049B5 RID: 18869 RVA: 0x0026354C File Offset: 0x0026174C
798 public override void UpdateVelocity(int frameCount)
799 {
800 float x = this._magnetAccelerations.X;
801 float y = this._magnetAccelerations.Y;
802 float x2 = this._magnetPointTarget.X;
803 float x3 = this._positionVsMagnet.X;
804 if (!true)
805 {
806 }
807 float y2 = this._magnetPointTarget.Y;
808 float y3 = this._positionVsMagnet.Y;
809 if (!true)
810 {
811 }
812 float x4 = this._velocityVsMagnet.X;
813 float y4 = this._velocityVsMagnet.Y;
814 float x5 = this._positionVsMagnet.X;
815 float y5 = this._positionVsMagnet.Y;
820 float x6 = this._velocityVsMagnet.X;
821 float y6 = this._velocityVsMagnet.Y;
822 if (effects == SpriteEffects.None)
823 {
824 }
827 }
828
829 // Token: 0x060049B6 RID: 18870 RVA: 0x00263658 File Offset: 0x00261858
830 public override void Update(int frameCount)
831 {
832 int num = 1;
833 base.Update(frameCount);
834 if (num == 0)
835 {
836 }
838 if (num == 0)
839 {
840 }
841 int lifeTime = this.LifeTime;
843 int num2 = 32640;
846 }
847
848 // Token: 0x060049B7 RID: 18871 RVA: 0x002636A4 File Offset: 0x002618A4
852
853 // Token: 0x060049B8 RID: 18872 RVA: 0x002636B4 File Offset: 0x002618B4
854 public override Color GetColor(Color backgroundColor)
855 {
856 /*
857An exception occurred when decompiling this method (060049B8)
858
859ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.GameContent.Skies.AmbientSky/SeagullsGroupSkyEntity::GetColor(Microsoft.Xna.Framework.Graphics.Color)
860
861 ---> System.Exception: Basic block has to end with unconditional control flow.
862{
863 Block_0:
864 stloc:Color(var_0_07, call:Color(FadingSkyEntity::GetColor, ldloc:SeagullsGroupSkyEntity[exp:FadingSkyEntity](this), ldloc:Color(backgroundColor)))
865 stloc:float32[](var_2_0F, callgetter:float32[](Main::get_bgAlphaFrontLayer))
866}
867
868 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
869 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
870 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
871 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
872 --- End of inner exception stack trace ---
873 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
874 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
875*/;
876 }
877
878 // Token: 0x060049B9 RID: 18873 RVA: 0x002636D0 File Offset: 0x002618D0
879 public override void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
880 {
881 base.CommonDraw(spriteBatch, depthScale, minDepth, maxDepth);
882 }
883
884 // Token: 0x060049BA RID: 18874 RVA: 0x002636E8 File Offset: 0x002618E8
886 {
887 if (!true)
888 {
889 }
890 int num = 49864;
891 if (num == 0)
892 {
893 }
894 if (num == 0)
895 {
896 return;
897 }
898 }
899
900 // Token: 0x0400847D RID: 33917
902
903 // Token: 0x0400847E RID: 33918
905
906 // Token: 0x0400847F RID: 33919
908
909 // Token: 0x04008480 RID: 33920
911 }
912
913 // Token: 0x020009BE RID: 2494
915 {
916 // Token: 0x060049BB RID: 18875 RVA: 0x00263730 File Offset: 0x00261930
918 {
919 int num = 1;
920 this.IsActive = num != 0;
921 base..ctor();
922 int num2 = 26214;
924 int num3 = 1;
925 if (num3 == 0)
926 {
927 }
929 }
930
931 // Token: 0x060049BC RID: 18876 RVA: 0x0026379C File Offset: 0x0026199C
932 public override void UpdateVelocity(int frameCount)
933 {
934 float x = this._magnetAccelerations.X;
935 float y = this._magnetAccelerations.Y;
936 float x2 = this._magnetPointTarget.X;
937 float x3 = this._positionVsMagnet.X;
938 if (!true)
939 {
940 }
941 float y2 = this._magnetPointTarget.Y;
942 float y3 = this._positionVsMagnet.Y;
943 if (!true)
944 {
945 }
946 float x4 = this._velocityVsMagnet.X;
947 float y4 = this._velocityVsMagnet.Y;
951 if (!true)
952 {
953 }
954 if (!true)
955 {
956 }
958 float x5 = this._velocityVsMagnet.X;
959 float y5 = this._velocityVsMagnet.Y;
960 if (!true)
961 {
962 }
966 }
967
968 // Token: 0x060049BD RID: 18877 RVA: 0x00263898 File Offset: 0x00261A98
969 public override void Update(int frameCount)
970 {
971 int num = 1;
972 base.Update(frameCount);
973 if (num == 0)
974 {
975 }
977 if (num == 0)
978 {
979 }
980 int lifeTime = this.LifeTime;
982 int num2 = 32640;
985 }
986
987 // Token: 0x060049BE RID: 18878 RVA: 0x002638E4 File Offset: 0x00261AE4
988 public override Color GetColor(Color backgroundColor)
989 {
990 if (!true)
991 {
992 }
994 if (!true)
995 {
996 }
997 float opacity = this.Opacity;
999 return 1;
1000 }
1001
1002 // Token: 0x060049BF RID: 18879 RVA: 0x00263910 File Offset: 0x00261B10
1003 public override void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
1004 {
1005 base.CommonDraw(spriteBatch, depthScale, minDepth, maxDepth);
1006 }
1007
1008 // Token: 0x060049C0 RID: 18880 RVA: 0x00263928 File Offset: 0x00261B28
1012
1013 // Token: 0x060049C1 RID: 18881 RVA: 0x00263938 File Offset: 0x00261B38
1015 {
1016 if (!true)
1017 {
1018 }
1019 if (49864 == 0)
1020 {
1021 return;
1022 }
1023 }
1024
1025 // Token: 0x04008481 RID: 33921
1027
1028 // Token: 0x04008482 RID: 33922
1030
1031 // Token: 0x04008483 RID: 33923
1033
1034 // Token: 0x04008484 RID: 33924
1036 }
1037
1038 // Token: 0x020009BF RID: 2495
1040 {
1041 // Token: 0x060049C2 RID: 18882 RVA: 0x00263974 File Offset: 0x00261B74
1043 {
1044 int num = 1;
1045 this.IsActive = num != 0;
1046 base..ctor();
1047 int num2 = 26214;
1049 int num3 = 1;
1050 if (num3 == 0)
1051 {
1052 }
1054 }
1055
1056 // Token: 0x060049C3 RID: 18883 RVA: 0x002639EC File Offset: 0x00261BEC
1057 public override void UpdateVelocity(int frameCount)
1058 {
1059 float x = this._magnetAccelerations.X;
1060 float y = this._magnetAccelerations.Y;
1061 float x2 = this._magnetPointTarget.X;
1062 float x3 = this._positionVsMagnet.X;
1063 if (!true)
1064 {
1065 }
1066 float y2 = this._magnetPointTarget.Y;
1067 float y3 = this._positionVsMagnet.Y;
1068 if (!true)
1069 {
1070 }
1071 float x4 = this._velocityVsMagnet.X;
1072 float y4 = this._velocityVsMagnet.Y;
1073 float x5 = this._positionVsMagnet.X;
1074 float y5 = this._positionVsMagnet.Y;
1078 if (!true)
1079 {
1080 }
1081 if (!true)
1082 {
1083 }
1084 float x6 = this._velocityVsMagnet.X;
1085 float y6 = this._velocityVsMagnet.Y;
1087 this.Rotation = x5;
1088 }
1089
1090 // Token: 0x060049C4 RID: 18884 RVA: 0x00263AEC File Offset: 0x00261CEC
1091 public override void Update(int frameCount)
1092 {
1093 int num = 1;
1094 base.Update(frameCount);
1095 if (num == 0)
1096 {
1097 }
1098 int num2 = 1;
1099 if (num2 == 0)
1100 {
1101 }
1102 if (num2 == 0)
1103 {
1104 }
1105 int num3 = 1;
1106 if (num3 == 0)
1107 {
1108 }
1109 if (num3 != 0)
1110 {
1111 if (num3 == 0)
1112 {
1113 }
1115 if (num3 == 0)
1116 {
1117 }
1118 }
1119 int lifeTime = this.LifeTime;
1121 int num4 = 32640;
1124 }
1125
1126 // Token: 0x060049C5 RID: 18885 RVA: 0x00263B4C File Offset: 0x00261D4C
1130
1131 // Token: 0x060049C6 RID: 18886 RVA: 0x00263B5C File Offset: 0x00261D5C
1133 {
1134 if (!true)
1135 {
1136 }
1137 if (49864 == 0)
1138 {
1139 return;
1140 }
1141 }
1142
1143 // Token: 0x04008485 RID: 33925
1145
1146 // Token: 0x04008486 RID: 33926
1148
1149 // Token: 0x04008487 RID: 33927
1151
1152 // Token: 0x04008488 RID: 33928
1154 }
1155
1156 // Token: 0x020009C0 RID: 2496
1158 {
1159 // Token: 0x060049C7 RID: 18887 RVA: 0x00263B9C File Offset: 0x00261D9C
1161 {
1162 int num = 1;
1163 this.IsActive = num != 0;
1164 base..ctor();
1165 int num2 = 26214;
1167 int num3 = 1;
1168 if (num3 == 0)
1169 {
1170 }
1172 }
1173
1174 // Token: 0x060049C8 RID: 18888 RVA: 0x00263C84 File Offset: 0x00261E84
1175 public override void UpdateVelocity(int frameCount)
1176 {
1177 float x = this._magnetAccelerations.X;
1178 float y = this._magnetAccelerations.Y;
1179 float x2 = this._magnetPointTarget.X;
1180 float x3 = this._positionVsMagnet.X;
1181 if (!true)
1182 {
1183 }
1184 float y2 = this._magnetPointTarget.Y;
1185 float y3 = this._positionVsMagnet.Y;
1186 if (!true)
1187 {
1188 }
1189 float x4 = this._velocityVsMagnet.X;
1190 float y4 = this._velocityVsMagnet.Y;
1191 float x5 = this._positionVsMagnet.X;
1192 float y5 = this._positionVsMagnet.Y;
1196 if (!true)
1197 {
1198 }
1199 if (!true)
1200 {
1201 }
1203 float x6 = this._velocityVsMagnet.X;
1204 float y6 = this._velocityVsMagnet.Y;
1205 if (!true)
1206 {
1207 }
1210 }
1211
1212 // Token: 0x060049C9 RID: 18889 RVA: 0x00263D94 File Offset: 0x00261F94
1213 public override void Update(int frameCount)
1214 {
1215 base.Update(frameCount);
1216 }
1217
1218 // Token: 0x060049CA RID: 18890 RVA: 0x00263DA8 File Offset: 0x00261FA8
1222
1223 // Token: 0x060049CB RID: 18891 RVA: 0x00263DB8 File Offset: 0x00261FB8
1224 public override Color GetColor(Color backgroundColor)
1225 {
1226 if (!true)
1227 {
1228 }
1229 float depth = this.Depth;
1230 float opacity = this.Opacity;
1232 Color color2;
1233 float num;
1234 Color color = color2 * num;
1235 return 1;
1236 }
1237
1238 // Token: 0x060049CC RID: 18892 RVA: 0x00263DEC File Offset: 0x00261FEC
1240 {
1241 if (!true)
1242 {
1243 }
1244 int num = 49864;
1245 if (num == 0)
1246 {
1247 }
1249 if (num == 0)
1250 {
1251 return;
1252 }
1253 }
1254
1255 // Token: 0x060049CD RID: 18893 RVA: 0x00263E38 File Offset: 0x00262038
1257 {
1258 /*
1259An exception occurred when decompiling this method (060049CD)
1260
1261ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Skies.AmbientSky/HellBatsGoupSkyEntity::Helper_GetOpacityWithAccountingForBackgroundsOff()
1262
1263 ---> System.Exception: Basic block has to end with unconditional control flow.
1264{
1265 IL_0006:
1266 stloc:bool(var_1_0D, callgetter:bool(Main::get_BackgroundEnabled))
1267}
1268
1269 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
1270 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
1271 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
1272 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
1273 --- End of inner exception stack trace ---
1274 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
1275 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
1276*/;
1277 }
1278
1279 // Token: 0x04008489 RID: 33929
1281
1282 // Token: 0x0400848A RID: 33930
1284
1285 // Token: 0x0400848B RID: 33931
1287
1288 // Token: 0x0400848C RID: 33932
1290 }
1291
1292 // Token: 0x020009C1 RID: 2497
1294 {
1295 // Token: 0x060049CE RID: 18894 RVA: 0x00263E54 File Offset: 0x00262054
1296 public BatsGroupSkyEntity(Player player, FastRandom random)
1297 {
1298 int num = 1;
1299 this.IsActive = num != 0;
1300 base..ctor();
1301 int num2 = 26214;
1303 int num3 = 1;
1304 if (num3 == 0)
1305 {
1306 }
1308 }
1309
1310 // Token: 0x060049CF RID: 18895 RVA: 0x00263F30 File Offset: 0x00262130
1311 public override void UpdateVelocity(int frameCount)
1312 {
1313 float x = this._magnetAccelerations.X;
1314 float y = this._magnetAccelerations.Y;
1315 float x2 = this._magnetPointTarget.X;
1316 float x3 = this._positionVsMagnet.X;
1317 if (!true)
1318 {
1319 }
1320 float y2 = this._magnetPointTarget.Y;
1321 float y3 = this._positionVsMagnet.Y;
1322 if (!true)
1323 {
1324 }
1325 float x4 = this._velocityVsMagnet.X;
1326 float y4 = this._velocityVsMagnet.Y;
1327 float x5 = this._positionVsMagnet.X;
1328 float y5 = this._positionVsMagnet.Y;
1332 if (!true)
1333 {
1334 }
1335 if (!true)
1336 {
1337 }
1339 float x6 = this._velocityVsMagnet.X;
1340 float y6 = this._velocityVsMagnet.Y;
1341 if (!true)
1342 {
1343 }
1346 }
1347
1348 // Token: 0x060049D0 RID: 18896 RVA: 0x0026403C File Offset: 0x0026223C
1349 public override void Update(int frameCount)
1350 {
1351 int num = 1;
1352 base.Update(frameCount);
1353 if (num == 0)
1354 {
1355 }
1357 if (num == 0)
1358 {
1359 }
1360 int lifeTime = this.LifeTime;
1362 int num2 = 32640;
1365 }
1366
1367 // Token: 0x060049D1 RID: 18897 RVA: 0x00264088 File Offset: 0x00262288
1371
1372 // Token: 0x060049D2 RID: 18898 RVA: 0x00264098 File Offset: 0x00262298
1373 public override Color GetColor(Color backgroundColor)
1374 {
1375 /*
1376An exception occurred when decompiling this method (060049D2)
1377
1378ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.GameContent.Skies.AmbientSky/BatsGroupSkyEntity::GetColor(Microsoft.Xna.Framework.Graphics.Color)
1379
1380 ---> System.Exception: Basic block has to end with unconditional control flow.
1381{
1382 Block_0:
1383 stloc:Color(var_0_07, call:Color(FadingSkyEntity::GetColor, ldloc:BatsGroupSkyEntity[exp:FadingSkyEntity](this), ldloc:Color(backgroundColor)))
1384 stloc:float32[](var_2_0F, callgetter:float32[](Main::get_bgAlphaFrontLayer))
1385 stloc:float32[](var_4_17, callgetter:float32[](Main::get_bgAlphaFrontLayer))
1386 stloc:float32[](var_6_21, callgetter:float32[](Main::get_bgAlphaFrontLayer))
1387 stloc:float32[](var_8_2B, callgetter:float32[](Main::get_bgAlphaFrontLayer))
1388 stloc:float32[](var_10_35, callgetter:float32[](Main::get_bgAlphaFrontLayer))
1389}
1390
1391 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
1392 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
1393 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
1394 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
1395 --- End of inner exception stack trace ---
1396 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
1397 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
1398*/;
1399 }
1400
1401 // Token: 0x060049D3 RID: 18899 RVA: 0x002640DC File Offset: 0x002622DC
1403 {
1404 if (!true)
1405 {
1406 }
1407 int num = 49864;
1408 if (num == 0)
1409 {
1410 }
1411 if (num == 0)
1412 {
1413 return;
1414 }
1415 }
1416
1417 // Token: 0x0400848D RID: 33933
1419
1420 // Token: 0x0400848E RID: 33934
1422
1423 // Token: 0x0400848F RID: 33935
1425
1426 // Token: 0x04008490 RID: 33936
1428 }
1429
1430 // Token: 0x020009C2 RID: 2498
1432 {
1433 // Token: 0x060049D4 RID: 18900 RVA: 0x00264124 File Offset: 0x00262324
1434 public WyvernSkyEntity(Player player, FastRandom random)
1435 {
1436 int num = 1;
1437 this.IsActive = num != 0;
1438 base..ctor();
1439 int num2 = 26214;
1441 int num3 = 1;
1442 if (num3 == 0)
1443 {
1444 }
1446 }
1447
1448 // Token: 0x060049D5 RID: 18901 RVA: 0x002641A0 File Offset: 0x002623A0
1449 public override void UpdateVelocity(int frameCount)
1450 {
1451 if (!true)
1452 {
1453 }
1454 if (!true)
1455 {
1456 }
1458 }
1459 }
1460
1461 // Token: 0x020009C3 RID: 2499
1463 {
1464 // Token: 0x060049D6 RID: 18902 RVA: 0x000021DB File Offset: 0x000003DB
1465 public override Color GetColor(Color backgroundColor)
1466 {
1467 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1468 }
1469
1470 // Token: 0x060049D7 RID: 18903 RVA: 0x002641BC File Offset: 0x002623BC
1471 public override Vector2 GetDrawPosition()
1472 {
1473 float x = this.Position.X;
1474 float y = this.Position.Y;
1475 Vector2 vector;
1476 return vector;
1477 }
1478
1479 // Token: 0x060049D8 RID: 18904 RVA: 0x002641E4 File Offset: 0x002623E4
1480 public override void Update(int frameCount)
1481 {
1482 }
1483
1484 // Token: 0x060049D9 RID: 18905 RVA: 0x002641F4 File Offset: 0x002623F4
1486 {
1487 this.IsActive = true;
1488 base..ctor();
1489 }
1490 }
1491
1492 // Token: 0x020009C4 RID: 2500
1494 {
1495 // Token: 0x060049DA RID: 18906 RVA: 0x00264210 File Offset: 0x00262410
1497 {
1498 this.IsActive = true;
1499 base..ctor();
1500 }
1501 }
1502
1503 // Token: 0x020009C5 RID: 2501
1505 {
1506 // Token: 0x060049DB RID: 18907 RVA: 0x0026422C File Offset: 0x0026242C
1507 public AirshipSkyEntity(Player player, FastRandom random)
1508 {
1509 int num = 1;
1510 this.IsActive = num != 0;
1511 base..ctor();
1512 int num2 = 26214;
1516 int num3;
1517 if (num3 != 0)
1518 {
1519 return;
1520 }
1521 if (49864 == 0)
1522 {
1523 }
1524 float x = this.Position.X;
1525 float y = this.Position.Y;
1526 if (num2 != 0)
1527 {
1528 }
1529 }
1530
1531 // Token: 0x060049DC RID: 18908 RVA: 0x002642C4 File Offset: 0x002624C4
1532 public override void UpdateVelocity(int frameCount)
1533 {
1534 if (!true)
1535 {
1536 }
1537 if (!true)
1538 {
1539 }
1541 }
1542
1543 // Token: 0x060049DD RID: 18909 RVA: 0x002642E0 File Offset: 0x002624E0
1544 public override void Update(int frameCount)
1545 {
1546 int num = 1;
1547 base.Update(frameCount);
1548 if (num == 0)
1549 {
1550 }
1552 if (num == 0)
1553 {
1554 }
1555 int lifeTime = this.LifeTime;
1557 int num2 = 32640;
1560 }
1561 }
1562
1563 // Token: 0x020009C6 RID: 2502
1565 {
1566 // Token: 0x060049DE RID: 18910 RVA: 0x0026432C File Offset: 0x0026252C
1568 {
1569 int num = 1;
1570 this.IsActive = num != 0;
1571 base..ctor();
1572 int num2 = 26214;
1574 if (17096 == 0)
1575 {
1576 }
1577 if (num2 != 0)
1578 {
1579 }
1580 }
1581
1582 // Token: 0x060049DF RID: 18911 RVA: 0x002643AC File Offset: 0x002625AC
1583 public override void UpdateVelocity(int frameCount)
1584 {
1585 if (!true)
1586 {
1587 }
1588 if (true)
1589 {
1590 return;
1591 }
1592 if (!true)
1593 {
1594 }
1595 float y = this.Position.Y;
1596 }
1597
1598 // Token: 0x060049E0 RID: 18912 RVA: 0x002643DC File Offset: 0x002625DC
1599 public override void Update(int frameCount)
1600 {
1601 int num = 1;
1602 base.Update(frameCount);
1603 if (num == 0)
1604 {
1605 }
1607 if (num == 0)
1608 {
1609 }
1610 int lifeTime = this.LifeTime;
1612 int num2 = 32640;
1615 }
1616
1617 // Token: 0x04008491 RID: 33937
1618 private const int RANDOM_TILE_SPAWN_RANGE = 100;
1619 }
1620
1621 // Token: 0x020009C7 RID: 2503
1623 {
1624 // Token: 0x060049E1 RID: 18913 RVA: 0x00264428 File Offset: 0x00262628
1625 public CrimeraSkyEntity(Player player, FastRandom random)
1626 : base(player, random)
1627 {
1628 float depth = this.Depth;
1629 if (2 == 0)
1630 {
1631 }
1632 string text2;
1633 string text = "Images/Backgrounds/Ambience/Crimera" + text2;
1634 }
1635
1636 // Token: 0x060049E2 RID: 18914 RVA: 0x00264460 File Offset: 0x00262660
1637 public override Color GetColor(Color backgroundColor)
1638 {
1639 /*
1640An exception occurred when decompiling this method (060049E2)
1641
1642ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.GameContent.Skies.AmbientSky/CrimeraSkyEntity::GetColor(Microsoft.Xna.Framework.Graphics.Color)
1643
1644 ---> System.Exception: Basic block has to end with unconditional control flow.
1645{
1646 Block_0:
1647 stloc:Color(var_0_07, call:Color(FadingSkyEntity::GetColor, ldloc:CrimeraSkyEntity[exp:FadingSkyEntity](this), ldloc:Color(backgroundColor)))
1648 stloc:float32[](var_2_0F, callgetter:float32[](Main::get_bgAlphaFrontLayer))
1649}
1650
1651 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
1652 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
1653 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
1654 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
1655 --- End of inner exception stack trace ---
1656 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
1657 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
1658*/;
1659 }
1660 }
1661
1662 // Token: 0x020009C8 RID: 2504
1664 {
1665 // Token: 0x060049E3 RID: 18915 RVA: 0x0026447C File Offset: 0x0026267C
1666 public EOSSkyEntity(Player player, FastRandom random)
1667 : base(player, random)
1668 {
1669 float depth = this.Depth;
1670 if (2 == 0)
1671 {
1672 }
1673 string text2;
1674 string text = "Images/Backgrounds/Ambience/EOS" + text2;
1675 }
1676
1677 // Token: 0x060049E4 RID: 18916 RVA: 0x002644B4 File Offset: 0x002626B4
1678 public override Color GetColor(Color backgroundColor)
1679 {
1680 /*
1681An exception occurred when decompiling this method (060049E4)
1682
1683ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.GameContent.Skies.AmbientSky/EOSSkyEntity::GetColor(Microsoft.Xna.Framework.Graphics.Color)
1684
1685 ---> System.Exception: Basic block has to end with unconditional control flow.
1686{
1687 Block_0:
1688 stloc:Color(var_0_07, call:Color(FadingSkyEntity::GetColor, ldloc:EOSSkyEntity[exp:FadingSkyEntity](this), ldloc:Color(backgroundColor)))
1689 stloc:float32[](var_2_0F, callgetter:float32[](Main::get_bgAlphaFrontLayer))
1690}
1691
1692 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
1693 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
1694 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
1695 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
1696 --- End of inner exception stack trace ---
1697 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
1698 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
1699*/;
1700 }
1701 }
1702
1703 // Token: 0x020009C9 RID: 2505
1705 {
1706 // Token: 0x060049E5 RID: 18917 RVA: 0x002644D0 File Offset: 0x002626D0
1707 public EOCSkyEntity(Player player, FastRandom random)
1708 {
1709 int num = 1;
1710 this.IsActive = num != 0;
1711 base..ctor();
1712 int num2 = 26214;
1714 if (num2 != 0)
1715 {
1716 }
1717 }
1718
1719 // Token: 0x060049E6 RID: 18918 RVA: 0x0026453C File Offset: 0x0026273C
1720 private void BeginZigZag(FastRandom random, VirtualCamera camera, int direction)
1721 {
1722 this._state = 1;
1723 int num = random.Next(18, 31);
1724 this.LifeTime = 60;
1725 this._direction = direction;
1726 float num2 = random.NextFloat();
1727 }
1728
1729 // Token: 0x060049E7 RID: 18919 RVA: 0x00264574 File Offset: 0x00262774
1730 private void BeginChasingPlayer(FastRandom random, VirtualCamera camera)
1731 {
1732 this._state = 2;
1733 int num = random.Next(18, 31);
1734 this.LifeTime = 60;
1735 float num2 = random.NextFloat();
1736 float num3 = random.NextFloat();
1737 if (60 == 0)
1738 {
1739 }
1740 }
1741
1742 // Token: 0x060049E8 RID: 18920 RVA: 0x002645B4 File Offset: 0x002627B4
1743 public override void UpdateVelocity(int frameCount)
1744 {
1745 int state = this._state;
1746 this.ZigzagMove(frameCount);
1747 }
1748
1749 // Token: 0x060049E9 RID: 18921 RVA: 0x002645F4 File Offset: 0x002627F4
1750 private void ZigzagMove(int frameCount)
1751 {
1752 int num = 1;
1753 int direction = this._direction;
1754 if (num == 0)
1755 {
1756 }
1757 int num2 = 17558;
1758 float waviness = this._waviness;
1760 }
1761
1762 // Token: 0x060049EA RID: 18922 RVA: 0x00264624 File Offset: 0x00262824
1763 private void ChasePlayerTop(int frameCount)
1764 {
1765 if (!true)
1766 {
1767 }
1768 Vector2 center = Main.LocalPlayer.Center;
1769 float x = this.Position.X;
1770 float y = this.Position.Y;
1771 Vector2 vector;
1772 float num = vector.Length();
1773 float x2 = this.Velocity.X;
1774 int num2 = Math.Sign(num);
1775 float y2 = this.Velocity.Y;
1776 int num3 = Math.Sign(num);
1777 float x3 = this.Velocity.X;
1778 }
1779
1780 // Token: 0x04008492 RID: 33938
1781 private const int STATE_ZIGZAG = 1;
1782
1783 // Token: 0x04008493 RID: 33939
1784 private const int STATE_GOOVERPLAYER = 2;
1785
1786 // Token: 0x04008494 RID: 33940
1787 private int _state;
1788
1789 // Token: 0x04008495 RID: 33941
1790 private int _direction;
1791
1792 // Token: 0x04008496 RID: 33942
1793 private float _waviness;
1794 }
1795
1796 // Token: 0x020009CA RID: 2506
1798 {
1799 // Token: 0x060049EB RID: 18923 RVA: 0x002646A8 File Offset: 0x002628A8
1800 public MeteorSkyEntity(Player player, FastRandom random)
1801 {
1802 int num = 1;
1803 this.IsActive = num != 0;
1804 base..ctor();
1805 int num2 = 26214;
1807 if (num2 != 0)
1808 {
1809 }
1810 }
1811 }
1812
1813 // Token: 0x020009CB RID: 2507
1815 {
1816 // Token: 0x060049EC RID: 18924 RVA: 0x0026477C File Offset: 0x0026297C
1817 public EntityFactoryMethod(object @object, IntPtr method)
1818 {
1820 this.m_target = @object;
1822 this.method_code = this;
1823 }
1824
1825 // Token: 0x060049ED RID: 18925 RVA: 0x002647D8 File Offset: 0x002629D8
1826 public AmbientSky.SkyEntity Invoke(Player player, int seed)
1827 {
1828 /*
1829An exception occurred when decompiling this method (060049ED)
1830
1831ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Skies.AmbientSky/SkyEntity Terraria.GameContent.Skies.AmbientSky/EntityFactoryMethod::Invoke(Terraria.Player,System.Int32)
1832
1833 ---> System.Exception: Basic block has to end with unconditional control flow.
1834{
1835 Block_0:
1836 stloc:native int(var_0_06, ldfld:native int(Delegate::method_code, ldloc:EntityFactoryMethod[exp:Delegate](this)))
1837 stloc:native int(var_1_0D, ldfld:native int(Delegate::invoke_impl, ldloc:EntityFactoryMethod[exp:Delegate](this)))
1838 stloc:native int(var_2_14, ldfld:native int(Delegate::method, ldloc:EntityFactoryMethod[exp:Delegate](this)))
1839}
1840
1841 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
1842 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
1843 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
1844 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
1845 --- End of inner exception stack trace ---
1846 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
1847 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
1848*/;
1849 }
1850
1851 // Token: 0x060049EE RID: 18926 RVA: 0x000021DB File Offset: 0x000003DB
1852 public IAsyncResult BeginInvoke(Player player, int seed, AsyncCallback callback, object @object)
1853 {
1854 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1855 }
1856
1857 // Token: 0x060049EF RID: 18927 RVA: 0x000021DB File Offset: 0x000003DB
1859 {
1860 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1861 }
1862 }
1863 }
1864}
class f__AnonymousType0<< Count > j__TPar
static int Sign(double value)
Definition Math.cs:252
Vector2 Center
Definition Entity.cs:134
AirBalloonSkyEntity(Player player, FastRandom random)
AirshipSkyEntity(Player player, FastRandom random)
override Color GetColor(Color backgroundColor)
BatsGroupSkyEntity(Player player, FastRandom random)
static List< AmbientSky.BatsGroupSkyEntity > CreateGroup(Player player, FastRandom random)
void SetMagnetization(Vector2 accelerations, Vector2 targetOffset)
BirdsPackSkyEntity(Player player, FastRandom random)
ButterfliesSkyEntity(Player player, FastRandom random)
override Color GetColor(Color backgroundColor)
CrimeraSkyEntity(Player player, FastRandom random)
void BeginChasingPlayer(FastRandom random, VirtualCamera camera)
void BeginZigZag(FastRandom random, VirtualCamera camera, int direction)
EOCSkyEntity(Player player, FastRandom random)
override Color GetColor(Color backgroundColor)
EOSSkyEntity(Player player, FastRandom random)
AmbientSky.SkyEntity EndInvoke(IAsyncResult result)
IAsyncResult BeginInvoke(Player player, int seed, AsyncCallback callback, object @object)
AmbientSky.SkyEntity Invoke(Player player, int seed)
override Color GetColor(Color backgroundColor)
override void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
GastropodGroupSkyEntity(Player player, FastRandom random)
static List< AmbientSky.GastropodGroupSkyEntity > CreateGroup(Player player, FastRandom random)
void SetMagnetization(Vector2 accelerations, Vector2 targetOffset)
HellBatsGoupSkyEntity(Player player, FastRandom random)
static List< AmbientSky.HellBatsGoupSkyEntity > CreateGroup(Player player, FastRandom random)
void SetMagnetization(Vector2 accelerations, Vector2 targetOffset)
LostKiteSkyEntity(Player player, FastRandom random)
MeteorSkyEntity(Player player, FastRandom random)
override Color GetColor(Color backgroundColor)
PegasusSkyEntity(Player player, FastRandom random)
PixiePosseSkyEntity(Player player, FastRandom random)
override void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
static List< AmbientSky.SeagullsGroupSkyEntity > CreateGroup(Player player, FastRandom random)
void SetMagnetization(Vector2 accelerations, Vector2 targetOffset)
SeagullsGroupSkyEntity(Player player, FastRandom random)
override void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
void CommonDraw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
void SetPositionInWorldBasedOnScreenSpace(Vector2 actualWorldSpace)
virtual void Draw(SpriteBatch spriteBatch, float depthScale, float minDepth, float maxDepth)
void SetMagnetization(Vector2 accelerations, Vector2 targetOffset)
static List< AmbientSky.SlimeBalloonGroupSkyEntity > CreateGroup(Player player, FastRandom random)
VultureSkyEntity(Player player, FastRandom random)
override Color GetColor(Color backgroundColor)
WyvernSkyEntity(Player player, FastRandom random)
override void Update(GameTime gameTime)
Definition AmbientSky.cs:40
void Spawn(Player player, SkyEntityType type, int seed)
Definition AmbientSky.cs:95
override void Draw(SpriteBatch spriteBatch, float minDepth, float maxDepth)
Definition AmbientSky.cs:63
readonly SlotVector< AmbientSky.SkyEntity > _entities
override void Activate(Vector2 position, params object[] args)
Definition AmbientSky.cs:20
override void Deactivate(params object[] args)
Definition AmbientSky.cs:26
static bool IsItRaining
Definition Main.cs:3982
static bool LogicClient
Definition Main.cs:5513
static Terraria.Graphics.Camera Camera
Definition Main.cs:296
static int UnderworldLayer
Definition Main.cs:5133
static bool gameMenu
Definition Main.cs:2673
static Player LocalPlayer
Definition Main.cs:5267