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
DrawAnimationVertical.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000620 RID: 1568
9 {
10 // Token: 0x060035DD RID: 13789 RVA: 0x00211B24 File Offset: 0x0020FD24
11 public DrawAnimationVertical(int ticksperframe, int frameCount, bool pingPong = false)
12 {
14 this.TicksPerFrame = frameCount;
15 }
16
17 // Token: 0x060035DE RID: 13790 RVA: 0x00211B48 File Offset: 0x0020FD48
18 public override void Update()
19 {
20 if (!this.NotActuallyAnimating)
21 {
23 bool pingPong = this.PingPong;
24 this.FrameCounter = (pingPong ? 1 : 0);
25 int frame = this.Frame;
27 bool pingPong2 = this.PingPong;
28 this.Frame = frame;
29 if (pingPong2)
30 {
31 }
32 }
33 }
34
35 // Token: 0x060035DF RID: 13791 RVA: 0x00211B94 File Offset: 0x0020FD94
36 public override Rectangle GetFrame(Texture2D texture, int frameCounterOverride = -1)
37 {
38 int frameCount = this.FrameCount;
39 int frameCounter = this.FrameCounter;
40 int frame;
41 int ticksPerFrame;
42 if (this.PingPong)
43 {
44 bool pingPong = this.PingPong;
45 frame = this.Frame;
46 ticksPerFrame = this.TicksPerFrame;
47 if (pingPong)
48 {
49 }
50 }
51 int num = 1;
52 long num2 = 0L;
53 long num3 = 0L;
54 long num4 = 0L;
55 return texture.Frame(num, frame, (int)num2, ticksPerFrame, (int)num3, (int)num4);
56 }
57
58 // Token: 0x040076B1 RID: 30385
59 public bool PingPong;
60
61 // Token: 0x040076B2 RID: 30386
63 }
64}
class f__AnonymousType0<< Count > j__TPar
DrawAnimationVertical(int ticksperframe, int frameCount, bool pingPong=false)
override Rectangle GetFrame(Texture2D texture, int frameCounterOverride=-1)