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
LightDiscDrawer.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Cpp2IlInjected
;
4
using
Microsoft.Xna.Framework
;
5
using
Microsoft.Xna.Framework.Graphics
;
6
7
namespace
Terraria.Graphics
8
{
9
// Token: 0x0200073D RID: 1853
10
public
struct
LightDiscDrawer
11
{
12
// Token: 0x06003D2A RID: 15658 RVA: 0x00238890 File Offset: 0x00236A90
13
public
void
Draw
(
Projectile
proj
)
14
{
15
if
(!
true
)
16
{
17
}
18
Vector2
[] oldPos =
proj
.oldPos;
19
float
[] oldRot =
proj
.oldRot;
20
Vector2
screenPosition =
Main
.
screenPosition
;
21
Vector2
size =
proj
.Size;
22
EffectTechnique <CurrentTechnique>k__BackingField =
Main
.
pixelShader
.<CurrentTechnique>k__BackingField;
23
long
num = 0
L
;
24
EffectPass
effectPass
= <CurrentTechnique>k__BackingField.<Passes>k__BackingField[(int)num];
25
}
26
27
// Token: 0x06003D2B RID: 15659 RVA: 0x002388EC File Offset: 0x00236AEC
28
private
void
StripColors
(
float
progressOnStrip
, [Out]
Color
col
)
29
{
30
if
(!
true
)
31
{
32
}
33
Color
color2
;
34
Color
color =
color2
*
progressOnStrip
;
35
col.A
= color;
36
}
37
38
// Token: 0x06003D2C RID: 15660 RVA: 0x000021DB File Offset: 0x000003DB
39
private
float
StripWidth
(
float
progressOnStrip
)
40
{
41
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
42
}
43
44
// Token: 0x06003D2D RID: 15661 RVA: 0x0023890C File Offset: 0x00236B0C
45
// Note: this type is marked as 'beforefieldinit'.
46
static
LightDiscDrawer
()
47
{
48
}
49
50
// Token: 0x04007C1B RID: 31771
51
private
static
VertexStrip
_vertexStrip
;
52
}
53
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
Microsoft.Xna.Framework.Graphics.EffectPass
Definition
EffectPass.cs:10
Terraria.Graphics.VertexStrip
Definition
VertexStrip.cs:13
Terraria.Main.pixelShader
static Effect pixelShader
Definition
Main.cs:4317
Terraria.Main.screenPosition
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition
Main.cs:1973
Terraria.Main
Definition
Main.cs:67
Terraria.Projectile
Definition
Projectile.cs:21
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.Graphics
Definition
Camera.cs:6
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Terraria.Graphics.LightDiscDrawer._vertexStrip
static VertexStrip _vertexStrip
Definition
LightDiscDrawer.cs:51
Terraria.Graphics.LightDiscDrawer.StripWidth
float StripWidth(float progressOnStrip)
Definition
LightDiscDrawer.cs:39
Terraria.Graphics.LightDiscDrawer.StripColors
void StripColors(float progressOnStrip, [Out] Color col)
Definition
LightDiscDrawer.cs:28
Terraria.Graphics.LightDiscDrawer.LightDiscDrawer
static LightDiscDrawer()
Definition
LightDiscDrawer.cs:46
Terraria.Graphics.LightDiscDrawer.Draw
void Draw(Projectile proj)
Definition
LightDiscDrawer.cs:13
Terraria.Graphics.LightDiscDrawer
Definition
LightDiscDrawer.cs:11
source
Terraria
Graphics
LightDiscDrawer.cs
Generated by
1.10.0