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
Segments.cs
Go to the documentation of this file.
1using System;
12
14{
15 // Token: 0x02000995 RID: 2453
16 public class Segments
17 {
18 // Token: 0x060048CD RID: 18637 RVA: 0x00260634 File Offset: 0x0025E834
19 public Segments()
20 {
21 }
22
23 // Token: 0x04008405 RID: 33797
24 private const float PixelsToRollUpPerFrame = 0.5f;
25
26 // Token: 0x02000996 RID: 2454
28 {
29 // Token: 0x17000847 RID: 2119
30 // (get) Token: 0x060048CE RID: 18638 RVA: 0x000021DB File Offset: 0x000003DB
32 {
33 get
34 {
35 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
36 }
37 }
38
39 // Token: 0x060048CF RID: 18639 RVA: 0x00260648 File Offset: 0x0025E848
45
46 // Token: 0x060048D0 RID: 18640 RVA: 0x0026066C File Offset: 0x0025E86C
51
52 // Token: 0x060048D1 RID: 18641 RVA: 0x00260688 File Offset: 0x0025E888
54 {
55 int timeInAnimation = info.TimeInAnimation;
57 if (!true)
58 {
59 }
62 float x = info.AnchorPositionOnScreen.X;
63 float y = info.AnchorPositionOnScreen.Y;
64 if (17274 == 0)
65 {
66 }
67 float x2 = this._anchorOffset.X;
68 float y2 = this._anchorOffset.Y;
70 string <Value>k__BackingField = text.<Value>k__BackingField;
71 if (text == null)
72 {
73 }
75 float num;
76 Color color = color2 * num * num;
77 float displayOpacity = info.DisplayOpacity;
78 Color color3 = color * num;
79 if (text == null)
80 {
81 }
82 float displayOpacity2 = info.DisplayOpacity;
84 Color color4 = color5 * num;
85 }
86
87 // Token: 0x04008406 RID: 33798
88 private const int PixelsForALine = 120;
89
90 // Token: 0x04008407 RID: 33799
92
93 // Token: 0x04008408 RID: 33800
94 private float _timeToShowPeak;
95
96 // Token: 0x04008409 RID: 33801
98 }
99
100 // Token: 0x02000997 RID: 2455
102 {
103 // Token: 0x17000848 RID: 2120
104 // (get) Token: 0x060048D2 RID: 18642 RVA: 0x00260748 File Offset: 0x0025E948
106 {
107 get
108 {
109 /*
110An exception occurred when decompiling this method (060048D2)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Animations.Segments/AnimationSegmentWithActions`1::get_DedicatedTimeNeeded()
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 Block_0:
117 stloc:int32(var_0_06, ldfld:int32(AnimationSegmentWithActions`1::_dedicatedTimeNeeded, ldloc:AnimationSegmentWithActions`1(this)))
118}
119
120 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
121 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
122 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
123 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
124 --- End of inner exception stack trace ---
125 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
126 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
127*/;
128 }
129 }
130
131 // Token: 0x060048D3 RID: 18643 RVA: 0x0026075C File Offset: 0x0025E95C
136
137 // Token: 0x060048D4 RID: 18644 RVA: 0x00260778 File Offset: 0x0025E978
138 protected void ProcessActions(T obj, float localTimeForObject)
139 {
140 }
141
142 // Token: 0x060048D5 RID: 18645 RVA: 0x00260788 File Offset: 0x0025E988
150
151 // Token: 0x060048D6 RID: 18646 RVA: 0x002607AC File Offset: 0x0025E9AC
157
158 // Token: 0x060048D7 RID: 18647
159 protected abstract void Bind(IAnimationSegmentAction<T> act);
160
161 // Token: 0x060048D8 RID: 18648
162 public abstract void Draw(GameAnimationSegment info);
163
164 // Token: 0x0400840A RID: 33802
166
167 // Token: 0x0400840B RID: 33803
169
170 // Token: 0x0400840C RID: 33804
171 protected int _targetTime;
172
173 // Token: 0x0400840D RID: 33805
175 }
176
177 // Token: 0x02000998 RID: 2456
179 {
180 // Token: 0x060048D9 RID: 18649 RVA: 0x002607C4 File Offset: 0x0025E9C4
185
186 // Token: 0x060048DA RID: 18650 RVA: 0x002607D8 File Offset: 0x0025E9D8
192
193 // Token: 0x060048DB RID: 18651 RVA: 0x002607F0 File Offset: 0x0025E9F0
194 protected override void Bind(IAnimationSegmentAction<Player> act)
195 {
196 Player player = this._player;
197 }
198
199 // Token: 0x060048DC RID: 18652 RVA: 0x00260808 File Offset: 0x0025EA08
200 public override void Draw(GameAnimationSegment info)
201 {
202 int timeInAnimation = info.TimeInAnimation;
203 float dedicatedTimeNeeded = base.DedicatedTimeNeeded;
204 int timeInAnimation2 = info.TimeInAnimation;
205 this.ResetPlayerAnimation(info);
206 int timeInAnimation3 = info.TimeInAnimation;
207 Player player = this._player;
208 float displayOpacity = info.DisplayOpacity;
209 this._player.ResetEffects();
212 this._player.UpdateDyes();
213 this._player.PlayerFrame();
214 Player player2 = this._player;
215 int num = 1;
216 player2.socialIgnoreLight = num != 0;
217 float x = player2.position.X;
218 float y = player2.position.Y;
219 if (num == 0)
220 {
221 }
222 Vector2 screenPosition = Main.screenPosition;
223 if (num == 0)
224 {
225 }
227 Player player3 = this._player;
228 int width = player3.width;
229 int height = player3.height;
230 float x2 = player3.position.X;
231 float y2 = player3.position.Y;
233 player3.position.Y = (float)height;
234 Player player4 = this._player;
235 float displayOpacity2 = info.DisplayOpacity;
236 float opacityForAnimation = player4.opacityForAnimation;
237 Item[] inventory = player4.inventory;
239 Vector2 position = player2.position;
240 if (player4 == null)
241 {
242 }
243 if (this._shaderEffect != null)
244 {
245 return;
246 }
247 Camera camera = Main.Camera;
248 Player player5 = this._player;
249 float x3 = player5.position.X;
250 float y3 = player5.position.Y;
251 float x4 = player5.fullRotationOrigin.X;
252 float y4 = player5.fullRotationOrigin.Y;
253 }
254
255 // Token: 0x060048DD RID: 18653 RVA: 0x002609D8 File Offset: 0x0025EBD8
257 {
258 Player player = this._player;
259 if (!true)
260 {
261 }
263 player.CopyVisuals(localPlayer);
264 Player player2 = this._player;
265 float x = info.AnchorPositionOnScreen.X;
266 float y = info.AnchorPositionOnScreen.Y;
267 float x2 = this._anchorOffset.X;
268 float y2 = this._anchorOffset.Y;
269 if (!true)
270 {
271 }
273 }
274
275 // Token: 0x060048DE RID: 18654 RVA: 0x00260A50 File Offset: 0x0025EC50
276 // Note: this type is marked as 'beforefieldinit'.
278 {
279 }
280
281 // Token: 0x0400840E RID: 33806
283
284 // Token: 0x0400840F RID: 33807
286
287 // Token: 0x04008410 RID: 33808
289
290 // Token: 0x04008411 RID: 33809
292
293 // Token: 0x04008412 RID: 33810
294 private static Item _blankItem;
295
296 // Token: 0x02000999 RID: 2457
297 public interface IShaderEffect
298 {
299 // Token: 0x060048DF RID: 18655
301
302 // Token: 0x060048E0 RID: 18656
304 }
305
306 // Token: 0x0200099A RID: 2458
308 {
309 // Token: 0x060048E1 RID: 18657 RVA: 0x00003BB6 File Offset: 0x00001DB6
311 {
312 }
313
314 // Token: 0x060048E2 RID: 18658 RVA: 0x00003BB6 File Offset: 0x00001DB6
316 {
317 }
318
319 // Token: 0x060048E3 RID: 18659 RVA: 0x00003BB6 File Offset: 0x00001DB6
323 }
324 }
325
326 // Token: 0x0200099B RID: 2459
328 {
329 // Token: 0x060048E4 RID: 18660 RVA: 0x00260A60 File Offset: 0x0025EC60
332 {
333 if (!true)
334 {
335 }
337 }
338
339 // Token: 0x060048E5 RID: 18661 RVA: 0x00260A84 File Offset: 0x0025EC84
340 protected override void Bind(IAnimationSegmentAction<NPC> act)
341 {
342 NPC npc = this._npc;
343 }
344
345 // Token: 0x060048E6 RID: 18662 RVA: 0x00260A9C File Offset: 0x0025EC9C
346 public override void Draw(GameAnimationSegment info)
347 {
348 int timeInAnimation = info.TimeInAnimation;
349 float dedicatedTimeNeeded = base.DedicatedTimeNeeded;
350 int timeInAnimation2 = info.TimeInAnimation;
351 this.ResetNPCAnimation(info);
352 int timeInAnimation3 = info.TimeInAnimation;
353 NPC npc = this._npc;
354 NPC npc2 = this._npc;
355 int alpha = npc2.alpha;
356 npc2.FindFrame();
357 if (alpha == 0)
358 {
359 }
360 int type = this._npc.type;
361 if (alpha == 0)
362 {
363 }
364 NPC npc3 = this._npc;
365 }
366
367 // Token: 0x060048E7 RID: 18663 RVA: 0x00260B50 File Offset: 0x0025ED50
369 {
370 }
371
372 // Token: 0x04008413 RID: 33811
373 private NPC _npc;
374
375 // Token: 0x04008414 RID: 33812
377
378 // Token: 0x04008415 RID: 33813
380 }
381
382 // Token: 0x0200099C RID: 2460
383 public class LooseSprite
384 {
385 // Token: 0x060048E8 RID: 18664 RVA: 0x00260BD0 File Offset: 0x0025EDD0
387 {
388 this._asset = asset;
389 int num = 1;
392 int num2 = 16256;
393 this.CurrentOpacity = (float)num2;
394 }
395
396 // Token: 0x060048E9 RID: 18665 RVA: 0x00260C08 File Offset: 0x0025EE08
397 public void Reset()
398 {
399 Asset<Texture2D> asset = this._asset;
401 int num = 16256;
403 }
404
405 // Token: 0x04008416 RID: 33814
407
408 // Token: 0x04008417 RID: 33815
410
411 // Token: 0x04008418 RID: 33816
413
414 // Token: 0x04008419 RID: 33817
415 public float CurrentOpacity;
416 }
417
418 // Token: 0x0200099D RID: 2461
419 public class SpriteSegment : Segments.AnimationSegmentWithActions<Segments.LooseSprite>
420 {
421 // Token: 0x060048EA RID: 18666 RVA: 0x00260C38 File Offset: 0x0025EE38
426
427 // Token: 0x060048EB RID: 18667 RVA: 0x00260C4C File Offset: 0x0025EE4C
429 {
430 Segments.LooseSprite sprite = this._sprite;
431 }
432
433 // Token: 0x060048EC RID: 18668 RVA: 0x00260C64 File Offset: 0x0025EE64
439
440 // Token: 0x060048ED RID: 18669 RVA: 0x00260C7C File Offset: 0x0025EE7C
441 public override void Draw(GameAnimationSegment info)
442 {
443 int timeInAnimation = info.TimeInAnimation;
444 float dedicatedTimeNeeded = base.DedicatedTimeNeeded;
445 int timeInAnimation2 = info.TimeInAnimation;
446 Segments.LooseSprite sprite = this._sprite;
447 Asset<Texture2D> asset = sprite._asset;
449 int num = 16256;
451 int timeInAnimation3 = info.TimeInAnimation;
454 float x = info.AnchorPositionOnScreen.X;
455 float y = info.AnchorPositionOnScreen.Y;
456 float x2 = this._anchorOffset.X;
457 float y2 = this._anchorOffset.Y;
458 if (sprite3 == null)
459 {
460 }
462 float displayOpacity = info.DisplayOpacity;
463 float currentOpacity = sprite4.CurrentOpacity;
464 if (this._shaderEffect != null)
465 {
466 return;
467 }
468 if (this._shaderEffect != null)
469 {
470 return;
471 }
472 }
473
474 // Token: 0x060048EE RID: 18670 RVA: 0x00260D4C File Offset: 0x0025EF4C
476 {
477 Segments.LooseSprite sprite = this._sprite;
478 Asset<Texture2D> asset = sprite._asset;
480 int num = 16256;
482 }
483
484 // Token: 0x0400841A RID: 33818
486
487 // Token: 0x0400841B RID: 33819
489
490 // Token: 0x0400841C RID: 33820
492
493 // Token: 0x0200099E RID: 2462
494 public interface IShaderEffect
495 {
496 // Token: 0x060048EF RID: 18671
498
499 // Token: 0x060048F0 RID: 18672
501 }
502
503 // Token: 0x0200099F RID: 2463
505 {
506 // Token: 0x060048F1 RID: 18673 RVA: 0x00003BB6 File Offset: 0x00001DB6
510
511 // Token: 0x060048F2 RID: 18674 RVA: 0x00260D80 File Offset: 0x0025EF80
513 {
514 return default(Matrix);
515 }
516
517 // Token: 0x060048F3 RID: 18675 RVA: 0x00003BB6 File Offset: 0x00001DB6
521
522 // Token: 0x060048F4 RID: 18676 RVA: 0x00003B83 File Offset: 0x00001D83
527
528 // Token: 0x060048F5 RID: 18677 RVA: 0x00003B83 File Offset: 0x00001D83
533
534 // Token: 0x060048F6 RID: 18678 RVA: 0x00003BB6 File Offset: 0x00001DB6
538
539 // Token: 0x0400841D RID: 33821
540 private readonly string _shaderKey;
541
542 // Token: 0x0400841E RID: 33822
544
545 // Token: 0x0400841F RID: 33823
547
548 // Token: 0x04008420 RID: 33824
550
551 // Token: 0x04008421 RID: 33825
553
554 // Token: 0x04008422 RID: 33826
556
557 // Token: 0x020009A0 RID: 2464
558 // (Invoke) Token: 0x060048F8 RID: 18680
560 }
561 }
562
563 // Token: 0x020009A1 RID: 2465
564 public struct Panning
565 {
566 // Token: 0x060048FB RID: 18683 RVA: 0x00260D98 File Offset: 0x0025EF98
567 public float GetPanAmount(float time)
568 {
569 /*
570An exception occurred when decompiling this method (060048FB)
571
572ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Animations.Segments/Panning::GetPanAmount(System.Single)
573
574 ---> System.Exception: Basic block has to end with unconditional control flow.
575{
576 Block_0:
577 stloc:float32(var_0_06, ldfld:float32(Panning::Delay, ldloc:valuetype Terraria.GameContent.Animations.Segments/Panning&(this)))
578 stloc:float32(var_1_0D, ldfld:float32(Panning::Duration, ldloc:valuetype Terraria.GameContent.Animations.Segments/Panning&(this)))
579 stloc:float32(var_4_16, ldfld:float32(Panning::AmountOverTime, ldloc:valuetype Terraria.GameContent.Animations.Segments/Panning&(this)))
580 stloc:float32(var_5_1E, ldfld:float32(Panning::StartAmount, ldloc:valuetype Terraria.GameContent.Animations.Segments/Panning&(this)))
581}
582
583 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
584 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
585 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
586 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
587 --- End of inner exception stack trace ---
588 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
589 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
590*/;
591 }
592
593 // Token: 0x04008423 RID: 33827
594 public float AmountOverTime;
595
596 // Token: 0x04008424 RID: 33828
597 public float StartAmount;
598
599 // Token: 0x04008425 RID: 33829
600 public float Delay;
601
602 // Token: 0x04008426 RID: 33830
603 public float Duration;
604 }
605
606 // Token: 0x020009A2 RID: 2466
608 {
609 // Token: 0x17000849 RID: 2121
610 // (get) Token: 0x060048FC RID: 18684 RVA: 0x00260DC4 File Offset: 0x0025EFC4
611 // (set) Token: 0x060048FD RID: 18685 RVA: 0x00260DD8 File Offset: 0x0025EFD8
613 {
615 get
616 {
617 /*
618An exception occurred when decompiling this method (060048FC)
619
620ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Animations.Segments/EmoteSegment::get_DedicatedTimeNeeded()
621
622 ---> System.Exception: Basic block has to end with unconditional control flow.
623{
624 Block_0:
625 stloc:float32(var_0_06, ldfld:float32(EmoteSegment::<DedicatedTimeNeeded>k__BackingField, ldloc:EmoteSegment(this)))
626}
627
628 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
629 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
630 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
631 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
632 --- End of inner exception stack trace ---
633 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
634 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
635*/;
636 }
638 private set
639 {
640 }
641 }
642
643 // Token: 0x060048FE RID: 18686 RVA: 0x00260DE8 File Offset: 0x0025EFE8
644 public EmoteSegment(int emoteId, int targetTime, int timeToPlay, Vector2 position, SpriteEffects drawEffect, [Optional] Vector2 velocity)
645 {
646 this._effect = position;
649 }
650
651 // Token: 0x060048FF RID: 18687 RVA: 0x00260E14 File Offset: 0x0025F014
653 {
654 int timeInAnimation = info.TimeInAnimation;
655 int targetTime = this._targetTime;
656 float num = this.<DedicatedTimeNeeded>k__BackingField;
657 float x = info.AnchorPositionOnScreen.X;
658 float y = info.AnchorPositionOnScreen.Y;
659 float x2 = this._offset.X;
660 float y2 = this._offset.Y;
661 float x3 = this._velocity.X;
662 float y3 = this._velocity.Y;
663 }
664
665 // Token: 0x06004900 RID: 18688 RVA: 0x00260EC4 File Offset: 0x0025F0C4
667 {
668 int num = 1;
669 if (num == 0)
670 {
671 }
672 int emoteId = this._emoteId;
673 if (num == 0)
674 {
675 }
677 return rectangle;
678 }
679
680 // Token: 0x04008427 RID: 33831
682 private float <DedicatedTimeNeeded>k__BackingField;
683
684 // Token: 0x04008428 RID: 33832
685 private int _targetTime;
686
687 // Token: 0x04008429 RID: 33833
689
690 // Token: 0x0400842A RID: 33834
692
693 // Token: 0x0400842B RID: 33835
694 private int _emoteId;
695
696 // Token: 0x0400842C RID: 33836
698 }
699 }
700}
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
Segments.AnimationSegmentWithActions< T > With(IAnimationSegmentAction< T > act)
Definition Segments.cs:152
Segments.AnimationSegmentWithActions< T > Then(IAnimationSegmentAction< T > act)
Definition Segments.cs:143
EmoteSegment(int emoteId, int targetTime, int timeToPlay, Vector2 position, SpriteEffects drawEffect, [Optional] Vector2 velocity)
Definition Segments.cs:644
LocalizedTextSegment(float timeInAnimation, LocalizedText textObject, Vector2 anchorOffset)
Definition Segments.cs:47
LocalizedTextSegment(float timeInAnimation, string textKey)
Definition Segments.cs:40
LooseSprite(DrawData data, Asset< Texture2D > asset)
Definition Segments.cs:386
void ResetNPCAnimation(GameAnimationSegment info)
Definition Segments.cs:368
NPCSegment(int targetTime, int npcId, Vector2 anchorOffset, Vector2 normalizedNPCHitboxOrigin)
Definition Segments.cs:330
override void Draw(GameAnimationSegment info)
Definition Segments.cs:346
override void Bind(IAnimationSegmentAction< NPC > act)
Definition Segments.cs:340
Segments.PlayerSegment.IShaderEffect _shaderEffect
Definition Segments.cs:291
Segments.PlayerSegment UseShaderEffect(Segments.PlayerSegment.IShaderEffect shaderEffect)
Definition Segments.cs:187
override void Draw(GameAnimationSegment info)
Definition Segments.cs:200
PlayerSegment(int targetTime, Vector2 anchorOffset, Vector2 normalizedHitboxOrigin)
Definition Segments.cs:181
void ResetPlayerAnimation(GameAnimationSegment info)
Definition Segments.cs:256
override void Bind(IAnimationSegmentAction< Player > act)
Definition Segments.cs:194
MaskedFadeEffect([Optional] Segments.SpriteSegment.MaskedFadeEffect.GetMatrixAction fetchMatrixMethod, string shaderKey="MaskedFade", int verticalFrameCount=1, int verticalFrameWait=1)
Definition Segments.cs:507
Segments.SpriteSegment.MaskedFadeEffect WithPanX(Segments.Panning panning)
Definition Segments.cs:523
Segments.SpriteSegment.MaskedFadeEffect WithPanY(Segments.Panning panning)
Definition Segments.cs:529
Segments.SpriteSegment.MaskedFadeEffect.GetMatrixAction _fetchMatrix
Definition Segments.cs:555
void BeforeDrawing(GameAnimationSegment info, DrawData drawData)
Definition Segments.cs:518
void AfterDrawing(GameAnimationSegment info, DrawData drawData)
Definition Segments.cs:535
override void Bind(IAnimationSegmentAction< Segments.LooseSprite > act)
Definition Segments.cs:428
Segments.SpriteSegment.IShaderEffect _shaderEffect
Definition Segments.cs:491
override void Draw(GameAnimationSegment info)
Definition Segments.cs:441
void ResetSpriteAnimation(GameAnimationSegment info)
Definition Segments.cs:475
SpriteSegment(Asset< Texture2D > asset, int targetTime, DrawData data, Vector2 anchorOffset)
Definition Segments.cs:422
Segments.SpriteSegment UseShaderEffect(Segments.SpriteSegment.IShaderEffect shaderEffect)
Definition Segments.cs:434
static LocalizedText GetText(string key)
Definition Language.cs:44
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static Terraria.Graphics.Camera Camera
Definition Main.cs:296
static Player LocalPlayer
Definition Main.cs:5267
int alpha
Definition NPC.cs:11447
void ResetEffects()
Definition Player.cs:5650
void ResetVisibleAccessories()
Definition Player.cs:8991
void CopyVisuals(Player other)
Definition Player.cs:18294
void UpdateDyes()
Definition Player.cs:3749
void UpdateMiscCounter()
Definition Player.cs:8479
void PlayerFrame()
Definition Player.cs:10462
void AfterDrawing(GameAnimationSegment info, DrawData drawData)
void BeforeDrawing(GameAnimationSegment info, DrawData drawData)