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
MagicMissileDrawer.cs
Go to the documentation of this file.
1using System;
5
6namespace Terraria.Graphics
7{
8 // Token: 0x0200073C RID: 1852
9 public struct MagicMissileDrawer
10 {
11 // Token: 0x06003D26 RID: 15654 RVA: 0x002387D8 File Offset: 0x002369D8
12 public void Draw(Projectile proj)
13 {
14 if (!true)
15 {
16 }
17 if (!true)
18 {
19 }
20 Vector2[] oldPos = proj.oldPos;
21 float[] oldRot = proj.oldRot;
22 Vector2 screenPosition = Main.screenPosition;
23 Vector2 size = proj.Size;
24 EffectTechnique <CurrentTechnique>k__BackingField = Main.pixelShader.<CurrentTechnique>k__BackingField;
25 long num = 0L;
26 EffectPass effectPass = <CurrentTechnique>k__BackingField.<Passes>k__BackingField[(int)num];
27 }
28
29 // Token: 0x06003D27 RID: 15655 RVA: 0x00238838 File Offset: 0x00236A38
30 private void StripColors(float progressOnStrip, [Out] Color col)
31 {
32 if (!true)
33 {
34 }
35 Color color;
36 col.A = color;
37 }
38
39 // Token: 0x06003D28 RID: 15656 RVA: 0x00238854 File Offset: 0x00236A54
40 private float StripWidth(float progressOnStrip)
41 {
42 if (!true)
43 {
44 }
45 float num;
46 float lerpValue = Utils.GetLerpValue(MathHelper.Lerp(num, progressOnStrip, num), progressOnStrip, num, 2.3509887E-38f != null);
47 return 2.3509887E-38f;
48 }
49
50 // Token: 0x06003D29 RID: 15657 RVA: 0x00238880 File Offset: 0x00236A80
51 // Note: this type is marked as 'beforefieldinit'.
53 {
54 }
55
56 // Token: 0x04007C1A RID: 31770
57 private static VertexStrip _vertexStrip;
58 }
59}
class f__AnonymousType0<< Count > j__TPar
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:61
static Effect pixelShader
Definition Main.cs:4317
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static float GetLerpValue(float from, float to, float t, bool clamped=false)
Definition Utils.cs:182
void StripColors(float progressOnStrip, [Out] Color col)
float StripWidth(float progressOnStrip)