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
PlayerDrawSet.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000640 RID: 1600
10 public struct PlayerDrawSet
11 {
12 // Token: 0x06003662 RID: 13922 RVA: 0x00212C78 File Offset: 0x00210E78
13 public void AddDrawData(DrawData data)
14 {
16 }
17
18 // Token: 0x06003663 RID: 13923 RVA: 0x00212C8C File Offset: 0x00210E8C
19 public void AddDrawData(DrawData data)
20 {
22 }
23
24 // Token: 0x170006A2 RID: 1698
25 // (get) Token: 0x06003664 RID: 13924 RVA: 0x00212CA0 File Offset: 0x00210EA0
27 {
28 get
29 {
30 /*
31An exception occurred when decompiling this method (06003664)
32
33ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 Terraria.DataStructures.PlayerDrawSet::get_Center()
34
35 ---> System.Exception: Basic block has to end with unconditional control flow.
36{
37 Block_0:
38 stloc:Player(var_0_06, ldfld:Player(PlayerDrawSet::drawPlayer, ldloc:valuetype Terraria.DataStructures.PlayerDrawSet&(this)))
39 stloc:float32(var_1_12, ldfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](PlayerDrawSet::Position, ldloc:valuetype Terraria.DataStructures.PlayerDrawSet&(this))))
40 stloc:float32(var_2_1E, ldfld:float32(Vector2::Y, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](PlayerDrawSet::Position, ldloc:valuetype Terraria.DataStructures.PlayerDrawSet&(this))))
41 stloc:int32(var_3_25, ldfld:int32(Entity::width, ldloc:Player[exp:Entity](var_0_06)))
42 stloc:bool(var_4_2C, ldfld:bool(Entity::wet, ldloc:Player[exp:Entity](var_0_06)))
43}
44
45 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
46 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
47 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
48 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
49 --- End of inner exception stack trace ---
50 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
51 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
52*/;
53 }
54 }
55
56 // Token: 0x06003665 RID: 13925 RVA: 0x000021DB File Offset: 0x000003DB
58 {
59 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
60 }
61
62 // Token: 0x06003666 RID: 13926 RVA: 0x00212CDC File Offset: 0x00210EDC
64 {
65 Player player = this.drawPlayer;
66 int num = 1;
67 this.hideEntirePlayer = num != 0;
68 int direction = player.direction;
69 float x = this.Position.X;
70 float y = this.Position.Y;
71 if (direction == 0)
72 {
73 }
75 float x2 = this.Position.X;
76 Item item = this.heldItem;
77 int direction2 = player2.direction;
79 int heldProj = player2.heldProj;
80 byte useStyle = item.useStyle;
81 float x3 = this.ItemLocation.X;
82 float y2 = this.ItemLocation.Y;
83 if (direction2 == 0)
84 {
85 }
87 }
88
89 // Token: 0x06003667 RID: 13927 RVA: 0x00212E7C File Offset: 0x0021107C
90 private void CreateCompositeData()
91 {
92 if (!true)
93 {
94 }
95 if (true)
96 {
97 return;
98 }
99 if (!true)
100 {
101 }
102 Player player = this.drawPlayer;
103 int body = player.body;
104 if (player == null)
105 {
106 }
108 }
109
110 // Token: 0x06003668 RID: 13928 RVA: 0x00213108 File Offset: 0x00211308
112 {
113 }
114
115 // Token: 0x06003669 RID: 13929 RVA: 0x000021DB File Offset: 0x000003DB
117 {
118 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
119 }
120
121 // Token: 0x0600366A RID: 13930 RVA: 0x0021313C File Offset: 0x0021133C
123 {
124 }
125
126 // Token: 0x0400771A RID: 30490
128
129 // Token: 0x0400771B RID: 30491
131
132 // Token: 0x0400771C RID: 30492
134
135 // Token: 0x0400771D RID: 30493
137
138 // Token: 0x0400771E RID: 30494
140
141 // Token: 0x0400771F RID: 30495
142 public float shadow;
143
144 // Token: 0x04007720 RID: 30496
146
147 // Token: 0x04007721 RID: 30497
149
150 // Token: 0x04007722 RID: 30498
152
153 // Token: 0x04007723 RID: 30499
154 public int armorAdjust;
155
156 // Token: 0x04007724 RID: 30500
157 public bool missingHand;
158
159 // Token: 0x04007725 RID: 30501
160 public bool missingArm;
161
162 // Token: 0x04007726 RID: 30502
163 public bool heldProjOverHand;
164
165 // Token: 0x04007727 RID: 30503
166 public int skinVar;
167
168 // Token: 0x04007728 RID: 30504
169 public bool fullHair;
170
171 // Token: 0x04007729 RID: 30505
173
174 // Token: 0x0400772A RID: 30506
175 public bool hatHair;
176
177 // Token: 0x0400772B RID: 30507
178 public bool hideHair;
179
180 // Token: 0x0400772C RID: 30508
181 public int hairDyePacked;
182
183 // Token: 0x0400772D RID: 30509
184 public int skinDyePacked;
185
186 // Token: 0x0400772E RID: 30510
187 public float mountOffSet;
188
189 // Token: 0x0400772F RID: 30511
190 public int cHead;
191
192 // Token: 0x04007730 RID: 30512
193 public int cBody;
194
195 // Token: 0x04007731 RID: 30513
196 public int cLegs;
197
198 // Token: 0x04007732 RID: 30514
199 public int cHandOn;
200
201 // Token: 0x04007733 RID: 30515
202 public int cHandOff;
203
204 // Token: 0x04007734 RID: 30516
205 public int cBack;
206
207 // Token: 0x04007735 RID: 30517
208 public int cFront;
209
210 // Token: 0x04007736 RID: 30518
211 public int cShoe;
212
213 // Token: 0x04007737 RID: 30519
214 public int cFlameWaker;
215
216 // Token: 0x04007738 RID: 30520
217 public int cWaist;
218
219 // Token: 0x04007739 RID: 30521
220 public int cShield;
221
222 // Token: 0x0400773A RID: 30522
223 public int cNeck;
224
225 // Token: 0x0400773B RID: 30523
226 public int cFace;
227
228 // Token: 0x0400773C RID: 30524
229 public int cBalloon;
230
231 // Token: 0x0400773D RID: 30525
232 public int cWings;
233
234 // Token: 0x0400773E RID: 30526
235 public int cCarpet;
236
237 // Token: 0x0400773F RID: 30527
238 public int cPortableStool;
239
240 // Token: 0x04007740 RID: 30528
241 public int cFloatingTube;
242
243 // Token: 0x04007741 RID: 30529
244 public int cUnicornHorn;
245
246 // Token: 0x04007742 RID: 30530
247 public int cAngelHalo;
248
249 // Token: 0x04007743 RID: 30531
250 public int cBeard;
251
252 // Token: 0x04007744 RID: 30532
253 public int cLeinShampoo;
254
255 // Token: 0x04007745 RID: 30533
256 public int cBackpack;
257
258 // Token: 0x04007746 RID: 30534
259 public int cTail;
260
261 // Token: 0x04007747 RID: 30535
262 public int cFaceHead;
263
264 // Token: 0x04007748 RID: 30536
265 public int cFaceFlower;
266
267 // Token: 0x04007749 RID: 30537
268 public int cBalloonFront;
269
270 // Token: 0x0400774A RID: 30538
272
273 // Token: 0x0400774B RID: 30539
275
276 // Token: 0x0400774C RID: 30540
278
279 // Token: 0x0400774D RID: 30541
281
282 // Token: 0x0400774E RID: 30542
284
285 // Token: 0x0400774F RID: 30543
287
288 // Token: 0x04007750 RID: 30544
290
291 // Token: 0x04007751 RID: 30545
293
294 // Token: 0x04007752 RID: 30546
296
297 // Token: 0x04007753 RID: 30547
299
300 // Token: 0x04007754 RID: 30548
302
303 // Token: 0x04007755 RID: 30549
305
306 // Token: 0x04007756 RID: 30550
308
309 // Token: 0x04007757 RID: 30551
311
312 // Token: 0x04007758 RID: 30552
314
315 // Token: 0x04007759 RID: 30553
317
318 // Token: 0x0400775A RID: 30554
320
321 // Token: 0x0400775B RID: 30555
323
324 // Token: 0x0400775C RID: 30556
325 public int headGlowMask;
326
327 // Token: 0x0400775D RID: 30557
328 public int bodyGlowMask;
329
330 // Token: 0x0400775E RID: 30558
331 public int armGlowMask;
332
333 // Token: 0x0400775F RID: 30559
334 public int legsGlowMask;
335
336 // Token: 0x04007760 RID: 30560
338
339 // Token: 0x04007761 RID: 30561
341
342 // Token: 0x04007762 RID: 30562
344
345 // Token: 0x04007763 RID: 30563
347
348 // Token: 0x04007764 RID: 30564
350
351 // Token: 0x04007765 RID: 30565
352 public float stealth;
353
354 // Token: 0x04007766 RID: 30566
356
357 // Token: 0x04007767 RID: 30567
359
360 // Token: 0x04007768 RID: 30568
362
363 // Token: 0x04007769 RID: 30569
365
366 // Token: 0x0400776A RID: 30570
367 public float torsoOffset;
368
369 // Token: 0x0400776B RID: 30571
370 public bool hidesTopSkin;
371
372 // Token: 0x0400776C RID: 30572
373 public bool hidesBottomSkin;
374
375 // Token: 0x0400776D RID: 30573
376 public float rotation;
377
378 // Token: 0x0400776E RID: 30574
380
381 // Token: 0x0400776F RID: 30575
383
384 // Token: 0x04007770 RID: 30576
386
387 // Token: 0x04007771 RID: 30577
388 public bool backHairDraw;
389
390 // Token: 0x04007772 RID: 30578
392
393 // Token: 0x04007773 RID: 30579
395
396 // Token: 0x04007774 RID: 30580
398
399 // Token: 0x04007775 RID: 30581
401
402 // Token: 0x04007776 RID: 30582
404
405 // Token: 0x04007777 RID: 30583
407
408 // Token: 0x04007778 RID: 30584
410
411 // Token: 0x04007779 RID: 30585
413
414 // Token: 0x0400777A RID: 30586
416
417 // Token: 0x0400777B RID: 30587
419
420 // Token: 0x0400777C RID: 30588
422
423 // Token: 0x0400777D RID: 30589
425
426 // Token: 0x0400777E RID: 30590
428
429 // Token: 0x0400777F RID: 30591
431
432 // Token: 0x04007780 RID: 30592
434
435 // Token: 0x04007781 RID: 30593
437
438 // Token: 0x04007782 RID: 30594
440
441 // Token: 0x04007783 RID: 30595
442 public bool isSitting;
443
444 // Token: 0x04007784 RID: 30596
445 public bool isSleeping;
446
447 // Token: 0x04007785 RID: 30597
448 public float seatYOffset;
449
450 // Token: 0x04007786 RID: 30598
451 public int sittingIndex;
452
453 // Token: 0x04007787 RID: 30599
455
456 // Token: 0x04007788 RID: 30600
458
459 // Token: 0x04007789 RID: 30601
460 public bool drawFloatingTube;
461
462 // Token: 0x0400778A RID: 30602
463 public bool drawUnicornHorn;
464
465 // Token: 0x0400778B RID: 30603
466 public bool drawAngelHalo;
467
468 // Token: 0x0400778C RID: 30604
470
471 // Token: 0x0400778D RID: 30605
473
474 // Token: 0x0400778E RID: 30606
476
477 // Token: 0x0400778F RID: 30607
479
480 // Token: 0x04007790 RID: 30608
481 public bool hideEntirePlayer;
482 }
483}
class f__AnonymousType0<< Count > j__TPar
void BoringSetup(Player player, DrawData[] drawData, List< int > dust, List< int > gore, Vector2 drawPosition, float shadowOpacity, float rotation, Vector2 rotationOrigin)
void CreateCompositeData_DetermineShoulderOffsets(int armor, int targetFrameNumber)
void UpdateCompositeArm(Player.CompositeArmData data, float rotation, Point frameIndex, int targetX)
Rectangle CreateCompositeFrameRect(Point pt)