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.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
Microsoft.Xna.Framework.Graphics
;
4
5
namespace
Terraria.DataStructures
6
{
7
// Token: 0x02000620 RID: 1568
8
public
class
DrawAnimationVertical
:
DrawAnimation
9
{
10
// Token: 0x060035DD RID: 13789 RVA: 0x00211B24 File Offset: 0x0020FD24
11
public
DrawAnimationVertical
(
int
ticksperframe
,
int
frameCount,
bool
pingPong
=
false
)
12
{
13
this.TicksPerFrame
=
ticksperframe
;
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
{
22
int
ticksPerFrame
= this.
TicksPerFrame
;
23
bool
pingPong
= this.
PingPong
;
24
this.FrameCounter
= (pingPong ? 1 : 0);
25
int
frame = this.
Frame
;
26
int
ticksPerFrame2
= this.
TicksPerFrame
;
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
= 0
L
;
53
long
num3
= 0
L
;
54
long
num4
= 0
L
;
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
62
public
bool
NotActuallyAnimating
;
63
}
64
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:10
Terraria.DataStructures.DrawAnimationVertical.NotActuallyAnimating
bool NotActuallyAnimating
Definition
DrawAnimationVertical.cs:62
Terraria.DataStructures.DrawAnimationVertical.PingPong
bool PingPong
Definition
DrawAnimationVertical.cs:59
Terraria.DataStructures.DrawAnimationVertical.Update
override void Update()
Definition
DrawAnimationVertical.cs:18
Terraria.DataStructures.DrawAnimationVertical.DrawAnimationVertical
DrawAnimationVertical(int ticksperframe, int frameCount, bool pingPong=false)
Definition
DrawAnimationVertical.cs:11
Terraria.DataStructures.DrawAnimationVertical.GetFrame
override Rectangle GetFrame(Texture2D texture, int frameCounterOverride=-1)
Definition
DrawAnimationVertical.cs:36
Terraria.DataStructures.DrawAnimationVertical
Definition
DrawAnimationVertical.cs:9
Terraria.DataStructures.DrawAnimation.TicksPerFrame
int TicksPerFrame
Definition
DrawAnimation.cs:40
Terraria.DataStructures.DrawAnimation.Frame
int Frame
Definition
DrawAnimation.cs:34
Terraria.DataStructures.DrawAnimation.FrameCounter
int FrameCounter
Definition
DrawAnimation.cs:43
Terraria.DataStructures.DrawAnimation.FrameCount
int FrameCount
Definition
DrawAnimation.cs:37
Terraria.DataStructures.DrawAnimation
Definition
DrawAnimation.cs:9
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.DataStructures
Definition
AEntitySource_OnHit.cs:4
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:9
source
Terraria
DataStructures
DrawAnimationVertical.cs
Generated by
1.10.0