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
DD2Film.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x0200078E RID: 1934
9 public class DD2Film : Film
10 {
11 // Token: 0x06003F2F RID: 16175 RVA: 0x0023FDE4 File Offset: 0x0023DFE4
28
29 // Token: 0x06003F30 RID: 16176 RVA: 0x0023FE88 File Offset: 0x0023E088
31 {
32 if (!true)
33 {
34 }
36 }
37
38 // Token: 0x06003F31 RID: 16177 RVA: 0x0023FEA0 File Offset: 0x0023E0A0
40 {
41 float x = this._startPoint.X;
42 float y = this._startPoint.Y;
43 NPC npc;
44 this._dryad = npc;
45 int[] immune = npc.immune;
46 npc.immortal = true;
47 npc.dontTakeDamage = true;
48 }
49
50 // Token: 0x06003F32 RID: 16178 RVA: 0x0023FEE4 File Offset: 0x0023E0E4
52 {
53 NPC dryad = this._dryad;
54 if (dryad != null)
55 {
56 float[] ai = dryad.ai;
57 float[] localAI = dryad.localAI;
58 }
59 }
60
61 // Token: 0x06003F33 RID: 16179 RVA: 0x000021DB File Offset: 0x000003DB
63 {
64 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
65 }
66
67 // Token: 0x06003F34 RID: 16180 RVA: 0x000021DB File Offset: 0x000003DB
69 {
70 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
71 }
72
73 // Token: 0x06003F35 RID: 16181 RVA: 0x000021DB File Offset: 0x000003DB
75 {
76 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
77 }
78
79 // Token: 0x06003F36 RID: 16182 RVA: 0x000021DB File Offset: 0x000003DB
81 {
82 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
83 }
84
85 // Token: 0x06003F37 RID: 16183 RVA: 0x0023FF0C File Offset: 0x0023E10C
87 {
88 if (!true)
89 {
90 }
91 Vector2 center = this._ogre.Center;
92 }
93
94 // Token: 0x06003F38 RID: 16184 RVA: 0x0023FF28 File Offset: 0x0023E128
96 {
97 NPC dryad = this._dryad;
98 if (dryad != null)
99 {
100 float x = dryad.velocity.X;
102 Vector2 center = dryad.Center;
104 return;
105 }
106 NPC ogre = this._ogre;
107 if (ogre != null)
108 {
109 int myPlayer = Main.myPlayer;
110 ogre.target = myPlayer;
111 NPC ogre2 = this._ogre;
112 int num = 1;
113 ogre2.direction = num;
114 return;
115 }
116 }
117
118 // Token: 0x06003F39 RID: 16185 RVA: 0x00240010 File Offset: 0x0023E210
120 {
121 NPC ogre = this._ogre;
122 ogre.friendly = true;
123 List<NPC> army = this._army;
124 ogre.friendly = true;
125 }
126
127 // Token: 0x06003F3A RID: 16186 RVA: 0x0024004C File Offset: 0x0023E24C
129 {
130 NPC ogre = this._ogre;
131 List<NPC> army = this._army;
132 }
133
134 // Token: 0x06003F3B RID: 16187 RVA: 0x0024007C File Offset: 0x0023E27C
136 {
137 if (this._dryad != null && this._portal != null)
138 {
139 Vector2 center = this._dryad.Center;
140 NPC dryad = this._dryad;
141 if (!true)
142 {
143 }
144 float num;
146 NPC dryad2 = this._dryad;
147 float rotation = dryad2.rotation;
148 NPC portal = this._portal;
149 float x = dryad2.position.X;
150 Vector2 right = portal.Right;
151 NPC dryad3 = this._dryad;
152 float x2 = dryad3.velocity.X;
154 return;
155 }
156 }
157
158 // Token: 0x06003F3C RID: 16188 RVA: 0x002401F8 File Offset: 0x0023E3F8
160 {
161 float x = this._startPoint.X;
162 float y = this._startPoint.Y;
163 if (50032 == 0)
164 {
165 }
166 NPC npc;
167 this._portal = npc;
168 npc.immortal = true;
169 }
170
171 // Token: 0x06003F3D RID: 16189 RVA: 0x00240238 File Offset: 0x0023E438
173 {
174 NPC dryad = this._dryad;
175 if (dryad != null)
176 {
177 float[] ai = dryad.ai;
178 }
179 }
180
181 // Token: 0x06003F3E RID: 16190 RVA: 0x00240258 File Offset: 0x0023E458
183 {
184 NPC dryad = this._dryad;
185 if (dryad != null)
186 {
187 dryad.direction = 1;
189 }
190 }
191
192 // Token: 0x06003F3F RID: 16191 RVA: 0x00240280 File Offset: 0x0023E480
194 {
195 if (this._dryad != null)
196 {
197 }
198 }
199
200 // Token: 0x06003F40 RID: 16192 RVA: 0x00240298 File Offset: 0x0023E498
202 {
203 float[] ai = this._dryad.ai;
204 }
205
206 // Token: 0x06003F41 RID: 16193 RVA: 0x002402B4 File Offset: 0x0023E4B4
208 {
209 if (this._dryad != null)
210 {
211 return;
212 }
213 }
214
215 // Token: 0x06003F42 RID: 16194 RVA: 0x002402CC File Offset: 0x0023E4CC
217 {
218 if (this._dryad != null)
219 {
220 return;
221 }
222 }
223
224 // Token: 0x06003F43 RID: 16195 RVA: 0x002402E4 File Offset: 0x0023E4E4
226 {
227 int num = 1;
228 Vector2 center = this._portal.Center;
229 Vector2 bottom = this._portal.Bottom;
230 if (num == 0)
231 {
232 }
233 if (32640 == 0)
234 {
235 }
236 }
237
238 // Token: 0x06003F44 RID: 16196 RVA: 0x00240328 File Offset: 0x0023E528
240 {
241 NPC ogre = this._ogre;
242 if (ogre != null)
243 {
244 if (ogre.ai == null)
245 {
246 }
247 if (!true)
248 {
249 }
250 ogre.velocity = 1;
251 }
252 }
253
254 // Token: 0x06003F45 RID: 16197 RVA: 0x00240354 File Offset: 0x0023E554
256 {
257 NPC dryad = this._dryad;
258 if (dryad != null)
259 {
260 float[] ai = dryad.ai;
261 }
262 }
263
264 // Token: 0x06003F46 RID: 16198 RVA: 0x00240378 File Offset: 0x0023E578
266 {
267 NPC ogre = this._ogre;
268 if (ogre != null)
269 {
270 ogre.direction = 1;
272 }
273 }
274
275 // Token: 0x06003F47 RID: 16199 RVA: 0x002403A0 File Offset: 0x0023E5A0
277 {
278 if (this._ogre != null)
279 {
280 }
281 }
282
283 // Token: 0x06003F48 RID: 16200 RVA: 0x002403B8 File Offset: 0x0023E5B8
284 public override void OnBegin()
285 {
286 if (!true)
287 {
288 }
289 Vector2 screenPosition = Main.screenPosition;
290 int mouseX = Main.mouseX;
291 int mouseY = Main.mouseY;
292 if (49664 == 0)
293 {
294 }
295 this._isActive = true;
296 }
297
298 // Token: 0x06003F49 RID: 16201 RVA: 0x002403F4 File Offset: 0x0023E5F4
299 private NPC PlaceNPCOnGround(int type, Vector2 position)
300 {
301 /*
302An exception occurred when decompiling this method (06003F49)
303
304ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.NPC Terraria.Cinematics.DD2Film::PlaceNPCOnGround(System.Int32,Microsoft.Xna.Framework.Vector2)
305
306 ---> System.Exception: Basic block has to end with unconditional control flow.
307{
308 IL_0017:
309 brtrue(IL_0000, ldloc:int32[exp:bool](var_3_13))
310}
311
312 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
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 1878
314 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
315 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
316 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
317 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
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 88
319 --- End of inner exception stack trace ---
320 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
321 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
322*/;
323 }
324
325 // Token: 0x06003F4A RID: 16202 RVA: 0x0024041C File Offset: 0x0023E61C
326 public override void OnEnd()
327 {
328 if (this._dryad != null)
329 {
330 }
331 if (this._portal != null)
332 {
333 }
334 NPC ogre = this._ogre;
335 if (ogre != null)
336 {
337 }
339 }
340
341 // Token: 0x04007DA4 RID: 32164
342 private NPC _dryad;
343
344 // Token: 0x04007DA5 RID: 32165
345 private NPC _ogre;
346
347 // Token: 0x04007DA6 RID: 32166
348 private NPC _portal;
349
350 // Token: 0x04007DA7 RID: 32167
352
353 // Token: 0x04007DA8 RID: 32168
355
356 // Token: 0x04007DA9 RID: 32169
358 }
359}
class f__AnonymousType0<< Count > j__TPar
void SpawnGoblin(FrameEventData evt)
Definition DD2Film.cs:74
void OgreStand(FrameEventData evt)
Definition DD2Film.cs:239
void SpawnWitherBeast(FrameEventData evt)
Definition DD2Film.cs:62
void DryadPortalFade(FrameEventData evt)
Definition DD2Film.cs:135
void SpawnJavalinThrower(FrameEventData evt)
Definition DD2Film.cs:68
void RestoreEnemyDamage(FrameEventData evt)
Definition DD2Film.cs:128
void CreateCritters(FrameEventData evt)
Definition DD2Film.cs:80
void DryadConfusedEmote(FrameEventData evt)
Definition DD2Film.cs:207
void DryadInteract(FrameEventData evt)
Definition DD2Film.cs:51
void CreatePortal(FrameEventData evt)
Definition DD2Film.cs:159
NPC PlaceNPCOnGround(int type, Vector2 position)
Definition DD2Film.cs:299
void OgreLookRight(FrameEventData evt)
Definition DD2Film.cs:265
void DryadAttack(FrameEventData evt)
Definition DD2Film.cs:255
void CreateOgre(FrameEventData evt)
Definition DD2Film.cs:225
void OgreLookLeft(FrameEventData evt)
Definition DD2Film.cs:276
void DryadLookRight(FrameEventData evt)
Definition DD2Film.cs:182
void DryadWalk(FrameEventData evt)
Definition DD2Film.cs:201
void PerFrameSettings(FrameEventData evt)
Definition DD2Film.cs:30
void DryadAlertEmote(FrameEventData evt)
Definition DD2Film.cs:216
void CreateDryad(FrameEventData evt)
Definition DD2Film.cs:39
void RemoveEnemyDamage(FrameEventData evt)
Definition DD2Film.cs:119
void DryadStand(FrameEventData evt)
Definition DD2Film.cs:172
void OgreSwingSound(FrameEventData evt)
Definition DD2Film.cs:86
override void OnBegin()
Definition DD2Film.cs:284
void DryadPortalKnock(FrameEventData evt)
Definition DD2Film.cs:95
void DryadLookLeft(FrameEventData evt)
Definition DD2Film.cs:193
override void OnEnd()
Definition DD2Film.cs:326
static void clearAll()
Definition CombatText.cs:50
Vector2 Center
Definition Entity.cs:134
Vector2 Bottom
Definition Entity.cs:318
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
static int myPlayer
Definition Main.cs:2337
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587
int[] immune
Definition NPC.cs:11375
float[] ai
Definition NPC.cs:11384
float rotation
Definition NPC.cs:11465