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
RandomizedFrameParticle.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000759 RID: 1881
10 {
11 // Token: 0x06003DE9 RID: 15849 RVA: 0x0023A98C File Offset: 0x00238B8C
12 public override void FetchFromPool()
13 {
14 base.FetchFromPool();
15 }
16
17 // Token: 0x06003DEA RID: 15850 RVA: 0x0023A9A0 File Offset: 0x00238BA0
24
25 // Token: 0x06003DEB RID: 15851 RVA: 0x0023A9C4 File Offset: 0x00238BC4
26 private void RandomizeFrame()
27 {
28 Asset<Texture2D> texture = this._texture;
30 if (!true)
31 {
32 }
34 long num = 0L;
35 long num2 = 0L;
36 long num3 = 0L;
37 int num4;
38 Rectangle rectangle = Utils.Frame(texture, 1, animationFramesAmount, (int)num, num4, (int)num2, (int)num3);
41 Vector2 vector = rectangle.Size();
42 }
43
44 // Token: 0x06003DEC RID: 15852 RVA: 0x0023AA24 File Offset: 0x00238C24
57
58 // Token: 0x06003DED RID: 15853 RVA: 0x0023AA74 File Offset: 0x00238C74
59 public override void Draw(ParticleRendererSettings settings, SpriteBatch spritebatch)
60 {
63 float timeTolive = this._timeTolive;
65 if (!true)
66 {
67 }
68 if (!true)
69 {
70 }
71 float num;
72 Color color = colorTint * num;
73 float timeTolive2 = this._timeTolive;
76 float x = this.LocalPosition.X;
77 float y = this.LocalPosition.Y;
78 Rectangle frame = this._frame;
79 int width = this._frame.Width;
80 float y2 = this._origin.Y;
81 float rotation = this.Rotation;
82 float x2 = this._origin.X;
83 float x3 = this.Scale.X;
84 float y3 = this.Scale.Y;
85 }
86
87 // Token: 0x06003DEE RID: 15854 RVA: 0x0023AB34 File Offset: 0x00238D34
89 {
90 if (16256 == 0)
91 {
92 }
93 this.ColorTint = 16256;
94 base..ctor();
95 }
96
97 // Token: 0x04007CA2 RID: 31906
99
100 // Token: 0x04007CA3 RID: 31907
101 public float FadeOutNormalizedTime = (float)16256;
102
103 // Token: 0x04007CA4 RID: 31908
105
106 // Token: 0x04007CA5 RID: 31909
108
109 // Token: 0x04007CA6 RID: 31910
111
112 // Token: 0x04007CA7 RID: 31911
113 private float _timeTolive;
114
115 // Token: 0x04007CA8 RID: 31912
116 private float _timeSinceSpawn;
117
118 // Token: 0x04007CA9 RID: 31913
120 }
121}
class f__AnonymousType0<< Count > j__TPar
bool< ShouldBeRemovedFromRenderer > k__BackingField
override void Draw(ParticleRendererSettings settings, SpriteBatch spritebatch)
override void Update(ParticleRendererSettings settings)
void SetTypeInfo(int animationFramesAmount, int gameFramesPerAnimationFrame, float timeToLive)
static Rectangle Frame(this Asset< Texture2D > tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0)
Definition Utils.cs:706