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
NPCAimedTarget.cs
Go to the documentation of this file.
1
using
System
;
2
using
Cpp2IlInjected
;
3
using
Microsoft.Xna.Framework
;
4
using
Terraria.Enums
;
5
6
namespace
Terraria.DataStructures
7
{
8
// Token: 0x02000637 RID: 1591
9
public
struct
NPCAimedTarget
10
{
11
// Token: 0x1700069B RID: 1691
12
// (get) Token: 0x06003632 RID: 13874 RVA: 0x000021DB File Offset: 0x000003DB
13
public
bool
Invalid
14
{
15
get
16
{
17
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
18
}
19
}
20
21
// Token: 0x1700069C RID: 1692
22
// (get) Token: 0x06003633 RID: 13875 RVA: 0x00212548 File Offset: 0x00210748
23
public
Vector2
Center
24
{
25
get
26
{
27
int
width = this.
Width
;
28
int
height = this.
Height
;
29
float
x = this.
Position
.
X
;
30
float
y = this.
Position
.
Y
;
31
if
(!
true
)
32
{
33
}
34
return
1;
35
}
36
}
37
38
// Token: 0x1700069D RID: 1693
39
// (get) Token: 0x06003634 RID: 13876 RVA: 0x00212588 File Offset: 0x00210788
40
public
Vector2
Size
41
{
42
get
43
{
44
int
width = this.
Width
;
45
int
height = this.
Height
;
46
Vector2
vector;
47
return
vector;
48
}
49
}
50
51
// Token: 0x06003635 RID: 13877 RVA: 0x002125A4 File Offset: 0x002107A4
52
public
NPCAimedTarget
(
NPC
npc)
53
{
54
this.Type
=
NPCTargetType
.NPC;
55
Rectangle
hitbox
= npc.
Hitbox
;
56
int
width = npc.
width
;
57
Vector2
position = npc.
position
;
58
Vector2
velocity = npc.
velocity
;
59
}
60
61
// Token: 0x06003636 RID: 13878 RVA: 0x002125D4 File Offset: 0x002107D4
62
public
NPCAimedTarget
(
Player
player,
bool
ignoreTank
=
true
)
63
{
64
int
num = 1;
65
this.Type
= (
NPCTargetType
)num;
66
Rectangle
hitbox
= player.
Hitbox
;
67
int
width = player.
width
;
68
Vector2
position = player.
position
;
69
Vector2
velocity = player.
velocity
;
70
int
tankPet = player.
tankPet
;
71
int
tankPet2
= player.
tankPet
;
72
int
num2
= 3;
73
this.Type
= (
NPCTargetType
)
num2
;
74
Rectangle
hitbox2
= player.
Hitbox
;
75
int
width2
= player.
width
;
76
Vector2
position2
= player.
position
;
77
Vector2
velocity2
= player.
velocity
;
78
}
79
80
// Token: 0x040076F2 RID: 30450
81
public
NPCTargetType
Type
;
82
83
// Token: 0x040076F3 RID: 30451
84
public
Rectangle
Hitbox
;
85
86
// Token: 0x040076F4 RID: 30452
87
public
int
Width
;
88
89
// Token: 0x040076F5 RID: 30453
90
public
int
Height
;
91
92
// Token: 0x040076F6 RID: 30454
93
public
Vector2
Position
;
94
95
// Token: 0x040076F7 RID: 30455
96
public
Vector2
Velocity
;
97
}
98
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
Terraria.Entity.velocity
Vector2 velocity
Definition
Entity.cs:463
Terraria.Entity.Hitbox
Rectangle Hitbox
Definition
Entity.cs:414
Terraria.Entity.position
Vector2 position
Definition
Entity.cs:460
Terraria.Entity.width
int width
Definition
Entity.cs:478
Terraria.NPC
Definition
NPC.cs:20
Terraria.Player.tankPet
int tankPet
Definition
Player.cs:20381
Terraria.Player
Definition
Player.cs:33
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System
Definition
__ComObject.cs:4
Terraria.DataStructures
Definition
AEntitySource_OnHit.cs:4
Terraria.Enums.NPCTargetType
NPCTargetType
Definition
NPCTargetType.cs:7
Terraria.Enums
Definition
AnchorType.cs:4
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:9
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:698
Microsoft.Xna.Framework.Vector2.Y
float Y
Definition
Vector2.cs:701
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Terraria.DataStructures.NPCAimedTarget.Position
Vector2 Position
Definition
NPCAimedTarget.cs:93
Terraria.DataStructures.NPCAimedTarget.Height
int Height
Definition
NPCAimedTarget.cs:90
Terraria.DataStructures.NPCAimedTarget.Size
Vector2 Size
Definition
NPCAimedTarget.cs:41
Terraria.DataStructures.NPCAimedTarget.NPCAimedTarget
NPCAimedTarget(NPC npc)
Definition
NPCAimedTarget.cs:52
Terraria.DataStructures.NPCAimedTarget.Invalid
bool Invalid
Definition
NPCAimedTarget.cs:14
Terraria.DataStructures.NPCAimedTarget.Center
Vector2 Center
Definition
NPCAimedTarget.cs:24
Terraria.DataStructures.NPCAimedTarget.Type
NPCTargetType Type
Definition
NPCAimedTarget.cs:81
Terraria.DataStructures.NPCAimedTarget.NPCAimedTarget
NPCAimedTarget(Player player, bool ignoreTank=true)
Definition
NPCAimedTarget.cs:62
Terraria.DataStructures.NPCAimedTarget.Width
int Width
Definition
NPCAimedTarget.cs:87
Terraria.DataStructures.NPCAimedTarget.Hitbox
Rectangle Hitbox
Definition
NPCAimedTarget.cs:84
Terraria.DataStructures.NPCAimedTarget.Velocity
Vector2 Velocity
Definition
NPCAimedTarget.cs:96
Terraria.DataStructures.NPCAimedTarget
Definition
NPCAimedTarget.cs:10
source
Terraria
DataStructures
NPCAimedTarget.cs
Generated by
1.10.0