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
MoonlordDeathDrama.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000A51 RID: 2641
9 public class MoonlordDeathDrama
10 {
11 // Token: 0x06004E01 RID: 19969 RVA: 0x00275688 File Offset: 0x00273888
12 public static void Update()
13 {
14 if (!true)
15 {
16 }
17 }
18
19 // Token: 0x06004E02 RID: 19970 RVA: 0x002756C8 File Offset: 0x002738C8
20 public static void DrawPieces(SpriteBatch spriteBatch)
21 {
22 int num = 1;
23 if (num == 0)
24 {
25 }
26 Vector2 screenPosition = Main.screenPosition;
27 int screenWidth = Main.screenWidth;
28 int screenHeight = Main.screenHeight;
29 if (num == 0)
30 {
31 }
34 if (num == 0)
35 {
36 }
37 if (num == 0)
38 {
39 }
40 }
41
42 // Token: 0x06004E03 RID: 19971 RVA: 0x00275720 File Offset: 0x00273920
43 public static void DrawExplosions(SpriteBatch spriteBatch)
44 {
45 int num = 1;
46 if (num == 0)
47 {
48 }
49 Vector2 screenPosition = Main.screenPosition;
50 int screenWidth = Main.screenWidth;
51 int screenHeight = Main.screenHeight;
52 if (num == 0)
53 {
54 }
57 if (num == 0)
58 {
59 }
60 if (num == 0)
61 {
62 }
63 }
64
65 // Token: 0x06004E04 RID: 19972 RVA: 0x00275778 File Offset: 0x00273978
66 public static void DrawWhite(SpriteBatch spriteBatch)
67 {
68 if (!true)
69 {
70 }
71 int screenWidth = Main.screenWidth;
72 int screenHeight = Main.screenHeight;
73 }
74
75 // Token: 0x06004E05 RID: 19973 RVA: 0x002757A8 File Offset: 0x002739A8
77 {
78 if (!true)
79 {
80 }
81 if (!true)
82 {
83 }
84 }
85
86 // Token: 0x06004E06 RID: 19974 RVA: 0x0027580C File Offset: 0x00273A0C
87 public static void AddExplosion(Vector2 spot)
88 {
89 }
90
91 // Token: 0x06004E07 RID: 19975 RVA: 0x00275820 File Offset: 0x00273A20
92 public static void RequestLight(float light, Vector2 spot)
93 {
94 if (!true)
95 {
96 }
97 }
98
99 // Token: 0x06004E08 RID: 19976 RVA: 0x00275838 File Offset: 0x00273A38
101 {
102 }
103
104 // Token: 0x06004E09 RID: 19977 RVA: 0x0027584C File Offset: 0x00273A4C
105 // Note: this type is marked as 'beforefieldinit'.
107 {
108 }
109
110 // Token: 0x040086C3 RID: 34499
112
113 // Token: 0x040086C4 RID: 34500
115
116 // Token: 0x040086C5 RID: 34501
118
119 // Token: 0x040086C6 RID: 34502
120 private static float whitening;
121
122 // Token: 0x040086C7 RID: 34503
123 private static float requestedLight;
124
125 // Token: 0x02000A52 RID: 2642
126 public class MoonlordPiece
127 {
128 // Token: 0x06004E0A RID: 19978 RVA: 0x0027585C File Offset: 0x00273A5C
133
134 // Token: 0x06004E0B RID: 19979 RVA: 0x00275878 File Offset: 0x00273A78
135 public void Update()
136 {
137 float x = this._velocity.X;
138 float y = this._velocity.Y;
139 float rotation = this._rotation;
141 this._rotation = y;
143 float x2 = this._position.X;
144 float y2 = this._position.Y;
146 }
147
148 // Token: 0x06004E0C RID: 19980 RVA: 0x002758E4 File Offset: 0x00273AE4
149 public void Draw(SpriteBatch sp)
150 {
151 Color light = this.GetLight();
152 Texture2D texture = this._texture;
153 float x = this._position.X;
154 float y = this._position.Y;
155 Vector2 screenPosition = Main.screenPosition;
156 float y2 = this._origin.Y;
157 float rotation = this._rotation;
158 float x2 = this._origin.X;
159 }
160
161 // Token: 0x1700089C RID: 2204
162 // (get) Token: 0x06004E0D RID: 19981 RVA: 0x00275948 File Offset: 0x00273B48
163 public bool Dead
164 {
165 get
166 {
167 float y = this._position.Y;
168 if (!true)
169 {
170 }
171 float x = this._position.X;
172 if (17392 == 0)
173 {
174 }
175 return true;
176 }
177 }
178
179 // Token: 0x06004E0E RID: 19982 RVA: 0x00275978 File Offset: 0x00273B78
181 {
182 float x = this._position.X;
183 float y = this._position.Y;
184 if (!true)
185 {
186 }
187 bool flag;
188 return flag;
189 }
190
191 // Token: 0x06004E0F RID: 19983 RVA: 0x002759A4 File Offset: 0x00273BA4
193 {
194 if (!true)
195 {
196 }
197 int num = 1;
198 if (num == 0)
199 {
200 }
201 float x = this._position.X;
202 float y = this._position.Y;
203 int value = num.m_value;
204 if (num == 0)
205 {
206 }
207 if (num == 0)
208 {
209 }
210 Color color;
211 Vector3 vector = color.ToVector3();
212 if (num == 0)
213 {
214 }
215 if (num == 0)
216 {
217 }
218 if (num == 0)
219 {
220 return;
221 }
222 }
223
224 // Token: 0x040086C8 RID: 34504
226
227 // Token: 0x040086C9 RID: 34505
229
230 // Token: 0x040086CA RID: 34506
232
233 // Token: 0x040086CB RID: 34507
235
236 // Token: 0x040086CC RID: 34508
237 private float _rotation;
238
239 // Token: 0x040086CD RID: 34509
240 private float _rotationVelocity;
241 }
242
243 // Token: 0x02000A53 RID: 2643
244 public class MoonlordExplosion
245 {
246 // Token: 0x06004E10 RID: 19984 RVA: 0x002759F8 File Offset: 0x00273BF8
247 public MoonlordExplosion(Texture2D pieceTexture, Vector2 centerPos, int frameSpeed)
248 {
250 if (!true)
251 {
252 }
253 long num = 0L;
254 long num2 = 0L;
255 long num3 = 0L;
256 long num4 = 0L;
257 Rectangle rectangle = pieceTexture.Frame(1, 7, (int)num, (int)num2, (int)num3, (int)num4);
260 Vector2 vector = rectangle.Size();
261 if (!true)
262 {
263 }
264 }
265
266 // Token: 0x06004E11 RID: 19985 RVA: 0x00275A50 File Offset: 0x00273C50
267 public void Update()
268 {
269 int frameCounter = this._frameCounter;
270 Texture2D texture = this._texture;
271 if (frameCounter == 0)
272 {
273 }
274 int num = 1;
277 this._frame.Width = num;
278 }
279
280 // Token: 0x06004E12 RID: 19986 RVA: 0x00275A84 File Offset: 0x00273C84
281 public void Draw(SpriteBatch sp)
282 {
283 Texture2D texture = this._texture;
284 float x = this._position.X;
285 float y = this._position.Y;
286 if (!true)
287 {
288 }
289 Vector2 screenPosition = Main.screenPosition;
290 if (!true)
291 {
292 }
293 Rectangle frame = this._frame;
294 int width = this._frame.Width;
295 float x2 = this._origin.X;
296 float y2 = this._origin.Y;
297 }
298
299 // Token: 0x1700089D RID: 2205
300 // (get) Token: 0x06004E13 RID: 19987 RVA: 0x00275AF4 File Offset: 0x00273CF4
301 public bool Dead
302 {
303 get
304 {
305 /*
306An exception occurred when decompiling this method (06004E13)
307
308ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Events.MoonlordDeathDrama/MoonlordExplosion::get_Dead()
309
310 ---> System.Exception: Basic block has to end with unconditional control flow.
311{
312 IL_0024:
313 stloc:int32(var_3_2A, ldfld:int32(MoonlordExplosion::_frameCounter, ldloc:MoonlordExplosion(this)))
314}
315
316 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
317 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
318 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
319 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
320 --- End of inner exception stack trace ---
321 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
322 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
323*/;
324 }
325 }
326
327 // Token: 0x06004E14 RID: 19988 RVA: 0x00275B30 File Offset: 0x00273D30
329 {
330 float x = this._position.X;
331 float y = this._position.Y;
332 if (!true)
333 {
334 }
335 bool flag;
336 return flag;
337 }
338
339 // Token: 0x06004E15 RID: 19989 RVA: 0x00275B5C File Offset: 0x00273D5C
341 {
342 Color color;
343 return color;
344 }
345
346 // Token: 0x040086CE RID: 34510
348
349 // Token: 0x040086CF RID: 34511
351
352 // Token: 0x040086D0 RID: 34512
354
355 // Token: 0x040086D1 RID: 34513
357
358 // Token: 0x040086D2 RID: 34514
359 private int _frameCounter;
360
361 // Token: 0x040086D3 RID: 34515
362 private int _frameSpeed;
363 }
364 }
365}
class f__AnonymousType0<< Count > j__TPar
MoonlordExplosion(Texture2D pieceTexture, Vector2 centerPos, int frameSpeed)
MoonlordPiece(Texture2D pieceTexture, Vector2 textureOrigin, Vector2 centerPos, Vector2 velocity, float rot, float angularVelocity)
static void DrawExplosions(SpriteBatch spriteBatch)
static List< MoonlordDeathDrama.MoonlordExplosion > _explosions
static void DrawPieces(SpriteBatch spriteBatch)
static List< MoonlordDeathDrama.MoonlordPiece > _pieces
static void ThrowPieces(Vector2 MoonlordCoreCenter, int DramaSeed)
static void DrawWhite(SpriteBatch spriteBatch)
static void RequestLight(float light, Vector2 spot)
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int screenHeight
Definition Main.cs:2015
static int screenWidth
Definition Main.cs:2001