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
VoidLensHelper.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
Cpp2IlInjected
;
4
using
Microsoft.Xna.Framework
;
5
using
Terraria.DataStructures
;
6
7
namespace
Terraria.GameContent
8
{
9
// Token: 0x0200080B RID: 2059
10
public
struct
VoidLensHelper
11
{
12
// Token: 0x060041DC RID: 16860 RVA: 0x00248CB0 File Offset: 0x00246EB0
13
public
VoidLensHelper
(
Projectile
proj
)
14
{
15
Vector2
center =
proj
.Center;
16
float
opacity
=
proj
.Opacity;
17
int
frame =
proj
.frame;
18
this._frameNumber
= frame;
19
}
20
21
// Token: 0x060041DD RID: 16861 RVA: 0x00248CDC File Offset: 0x00246EDC
22
public
VoidLensHelper
(
Vector2
worldPosition,
float
opacity
)
23
{
24
if
(!
true
)
25
{
26
Vector2
position = this.
_position
;
27
}
28
int
num = 16928;
29
this._frameNumber
= num;
30
}
31
32
// Token: 0x060041DE RID: 16862 RVA: 0x00248D00 File Offset: 0x00246F00
33
public
void
Update
()
34
{
35
Vector2
position = this.
_position
;
36
if
(!
true
)
37
{
38
}
39
this.
SpawnVoidLensDust
();
40
}
41
42
// Token: 0x060041DF RID: 16863 RVA: 0x00248D20 File Offset: 0x00246F20
43
public
void
SpawnVoidLensDust
()
44
{
45
if
(!
true
)
46
{
47
}
48
int
num;
49
if
(num == 0)
50
{
51
if
(!
true
)
52
{
53
}
54
if
(!
true
)
55
{
56
}
57
int
num2
;
58
if
(
num2
!= 0)
59
{
60
Vector2
position = this.
_position
;
61
Dust
dust;
62
dust.noGravity
=
true
;
63
dust.noLightEmittence
=
true
;
64
Vector2
position2
= this.
_position
;
65
return
;
66
}
67
Vector2
position3
= this.
_position
;
68
Dust
dust2
;
69
dust2.noGravity
=
true
;
70
dust2.noLightEmittence
=
true
;
71
Vector2
position4
= this.
_position
;
72
dust2.fadeIn
= (float)16128;
73
float
x =
dust2
.velocity.
X
;
74
float
y =
dust2
.velocity.Y;
75
float
x2
=
dust2
.position.X;
76
float
y2
=
dust2
.position.Y;
77
float
x3
=
dust2
.velocity.X;
78
float
y3
=
dust2
.velocity.Y;
79
dust2.position.X
= x;
80
dust2.position.Y
= y;
81
dust2.velocity.X
= x;
82
dust2.velocity.Y
= y;
83
}
84
}
85
86
// Token: 0x060041E0 RID: 16864 RVA: 0x000021DB File Offset: 0x000003DB
87
public
void
DrawToDrawData
(
List<DrawData>
drawDataList
,
int
selectionMode
)
88
{
89
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
90
}
91
92
// Token: 0x040080A4 RID: 32932
93
private
readonly
Vector2
_position
;
94
95
// Token: 0x040080A5 RID: 32933
96
private
readonly
float
_opacity
;
97
98
// Token: 0x040080A6 RID: 32934
99
private
readonly
int
_frameNumber
;
100
}
101
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.Collections.Generic.List
Definition
List.cs:13
Terraria.Dust
Definition
Dust.cs:15
Terraria.Projectile
Definition
Projectile.cs:21
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System
Definition
__ComObject.cs:4
Terraria.DataStructures
Definition
AEntitySource_OnHit.cs:4
Terraria.GameContent
Definition
AchievementsHelper.cs:7
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:698
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Terraria.GameContent.VoidLensHelper.SpawnVoidLensDust
void SpawnVoidLensDust()
Definition
VoidLensHelper.cs:43
Terraria.GameContent.VoidLensHelper._frameNumber
readonly int _frameNumber
Definition
VoidLensHelper.cs:99
Terraria.GameContent.VoidLensHelper._opacity
readonly float _opacity
Definition
VoidLensHelper.cs:96
Terraria.GameContent.VoidLensHelper.VoidLensHelper
VoidLensHelper(Vector2 worldPosition, float opacity)
Definition
VoidLensHelper.cs:22
Terraria.GameContent.VoidLensHelper.Update
void Update()
Definition
VoidLensHelper.cs:33
Terraria.GameContent.VoidLensHelper.DrawToDrawData
void DrawToDrawData(List< DrawData > drawDataList, int selectionMode)
Definition
VoidLensHelper.cs:87
Terraria.GameContent.VoidLensHelper.VoidLensHelper
VoidLensHelper(Projectile proj)
Definition
VoidLensHelper.cs:13
Terraria.GameContent.VoidLensHelper._position
readonly Vector2 _position
Definition
VoidLensHelper.cs:93
Terraria.GameContent.VoidLensHelper
Definition
VoidLensHelper.cs:11
source
Terraria
GameContent
VoidLensHelper.cs
Generated by
1.10.0