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
DSTFilm.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200078F RID: 1935
8 public class DSTFilm : Film
9 {
10 // Token: 0x06003F4B RID: 16203 RVA: 0x00240480 File Offset: 0x0023E680
11 public DSTFilm()
12 {
13 this.BuildSequence();
14 }
15
16 // Token: 0x06003F4C RID: 16204 RVA: 0x0024049C File Offset: 0x0023E69C
17 public override void OnBegin()
18 {
19 this.PrepareScene();
20 if (!true)
21 {
22 }
23 this._isActive = true;
24 }
25
26 // Token: 0x06003F4D RID: 16205 RVA: 0x002404BC File Offset: 0x0023E6BC
27 public override void OnEnd()
28 {
29 this.ClearScene();
30 if (!true)
31 {
32 }
33 }
34
35 // Token: 0x06003F4E RID: 16206 RVA: 0x002404D4 File Offset: 0x0023E6D4
36 private void BuildSequence()
37 {
38 base.AppendEmptySequence(60);
39 base.AppendEmptySequence(60);
40 base.AppendEmptySequence(187);
41 base.AppendEmptySequence(20);
42 base.AppendEmptySequence(20);
43 base.AppendEmptySequence(60);
44 }
45
46 // Token: 0x06003F4F RID: 16207 RVA: 0x0024051C File Offset: 0x0023E71C
47 private void PrepareScene()
48 {
49 int num = 1;
50 if (num == 0)
51 {
52 }
53 long num2 = 39322L;
54 num.m_value = (int)num2;
55 if (num == 0)
56 {
57 }
58 if (17568 == 0)
59 {
60 }
61 }
62
63 // Token: 0x06003F50 RID: 16208 RVA: 0x00240568 File Offset: 0x0023E768
64 private void ClearScene()
65 {
66 if (this._deerclops != null)
67 {
68 }
69 if (this._chester != null)
70 {
71 }
73 }
74
75 // Token: 0x06003F51 RID: 16209 RVA: 0x00240590 File Offset: 0x0023E790
77 {
78 if (!true)
79 {
80 }
82 this._oldItem = oldVelocity;
83 Item[] armor = Main.LocalPlayer.armor;
84 }
85
86 // Token: 0x06003F52 RID: 16210 RVA: 0x002405CC File Offset: 0x0023E7CC
88 {
89 if (!true)
90 {
91 }
93 Item oldItem = this._oldItem;
94 Item[] armor = localPlayer.armor;
95 if (oldItem == null || oldItem != null)
96 {
98 return;
99 }
100 throw new ArrayTypeMismatchException();
101 }
102
103 // Token: 0x06003F53 RID: 16211 RVA: 0x00240608 File Offset: 0x0023E808
105 {
106 int num = 1;
107 float x = this._startPoint.X;
108 float y = this._startPoint.Y;
109 NPC npc;
110 this._deerclops = npc;
111 int[] immune = npc.immune;
112 int num2 = 1;
113 npc.immortal = num2 != 0;
115 if (num == 0)
116 {
117 }
118 int myPlayer = Main.myPlayer;
119 NPC deerclops = this._deerclops;
120 float[] ai = deerclops.ai;
121 float x2 = deerclops.position.X;
125 }
126
127 // Token: 0x06003F54 RID: 16212 RVA: 0x002406B0 File Offset: 0x0023E8B0
128 private NPC PlaceNPCOnGround(int type, Vector2 position)
129 {
130 /*
131An exception occurred when decompiling this method (06003F54)
132
133ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.NPC Terraria.Cinematics.DSTFilm::PlaceNPCOnGround(System.Int32,Microsoft.Xna.Framework.Vector2)
134
135 ---> System.Exception: Basic block has to end with unconditional control flow.
136{
137 IL_0000:
138 brtrue(IL_0000, ldc.i4:bool(1))
139}
140
141 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
142 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
143 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
144 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
145 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
146 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
147 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
148 --- End of inner exception stack trace ---
149 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
150 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
151*/;
152 }
153
154 // Token: 0x06003F55 RID: 16213 RVA: 0x002406C0 File Offset: 0x0023E8C0
156 {
157 float x = this._startPoint.X;
158 float y = this._startPoint.Y;
159 int num = 17116;
160 if (num == 0)
161 {
162 }
163 if (num == 0)
164 {
165 }
166 int myPlayer = Main.myPlayer;
167 }
168
169 // Token: 0x06003F56 RID: 16214 RVA: 0x00240700 File Offset: 0x0023E900
171 {
172 if (!true)
173 {
174 }
178 float x = this._startPoint.X;
179 float y = this._startPoint.Y;
180 if (17174 == 0)
181 {
182 }
183 localPlayer.velocity = 16576;
184 }
185
186 // Token: 0x06003F57 RID: 16215 RVA: 0x00240754 File Offset: 0x0023E954
188 {
189 if (!true)
190 {
191 }
194 }
195
196 // Token: 0x06003F58 RID: 16216 RVA: 0x00240774 File Offset: 0x0023E974
198 {
199 if (!true)
200 {
201 }
205 NPC deerclops = this._deerclops;
206 float[] ai = deerclops.ai;
207 deerclops.TargetClosest(true);
208 }
209
210 // Token: 0x06003F59 RID: 16217 RVA: 0x002407B4 File Offset: 0x0023E9B4
212 {
213 if (!true)
214 {
215 }
217 this._chester.velocity.Y = (float)26214;
218 NPC deerclops = this._deerclops;
219 float[] ai = deerclops.ai;
220 deerclops.TargetClosest(true);
221 }
222
223 // Token: 0x06003F5A RID: 16218 RVA: 0x002407FC File Offset: 0x0023E9FC
224 private static void FindFloorAt(Vector2 position, [Out] int x, [Out] int y)
225 {
226 int num = 1;
227 position.X = (float)num;
228 x.m_value = num;
229 if (num == 0)
230 {
231 }
232 }
233
234 // Token: 0x04007DAA RID: 32170
236
237 // Token: 0x04007DAB RID: 32171
239
240 // Token: 0x04007DAC RID: 32172
242
243 // Token: 0x04007DAD RID: 32173
244 private Item _oldItem;
245 }
246}
class f__AnonymousType0<< Count > j__TPar
void DeerclopsAttack(FrameEventData evt)
Definition DSTFilm.cs:211
override void OnBegin()
Definition DSTFilm.cs:17
void ControlPlayer(FrameEventData evt)
Definition DSTFilm.cs:170
void CreateDeerclops(FrameEventData evt)
Definition DSTFilm.cs:104
static void FindFloorAt(Vector2 position, [Out] int x, [Out] int y)
Definition DSTFilm.cs:224
void EquipDSTShaderItem(FrameEventData evt)
Definition DSTFilm.cs:76
override void OnEnd()
Definition DSTFilm.cs:27
void RemoveDSTShaderItem(FrameEventData evt)
Definition DSTFilm.cs:87
void TurnPlayerToTheLeft(FrameEventData evt)
Definition DSTFilm.cs:197
void CreateChester(FrameEventData evt)
Definition DSTFilm.cs:155
void StopBeforeCliff(FrameEventData evt)
Definition DSTFilm.cs:187
NPC PlaceNPCOnGround(int type, Vector2 position)
Definition DSTFilm.cs:128
Vector2 oldVelocity
Definition Entity.cs:469
static int myPlayer
Definition Main.cs:2337
static Player LocalPlayer
Definition Main.cs:5267
int[] immune
Definition NPC.cs:11375
float[] ai
Definition NPC.cs:11384