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
WorldUIAnchor.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
4
namespace
Terraria.GameContent.UI
5
{
6
// Token: 0x02000A6B RID: 2667
7
public
class
WorldUIAnchor
8
{
9
// Token: 0x06004EA9 RID: 20137 RVA: 0x00277978 File Offset: 0x00275B78
10
public
WorldUIAnchor
()
11
{
12
if
(!
true
)
13
{
14
}
15
if
(
true
)
16
{
17
return
;
18
}
19
if
(!
true
)
20
{
21
}
22
this.type
=
WorldUIAnchor
.
AnchorType
.None;
23
}
24
25
// Token: 0x06004EAA RID: 20138 RVA: 0x00277998 File Offset: 0x00275B98
26
public
WorldUIAnchor
(
Entity
anchor)
27
{
28
if
(!
true
)
29
{
30
}
31
if
(
true
)
32
{
33
return
;
34
}
35
if
(!
true
)
36
{
37
}
38
}
39
40
// Token: 0x06004EAB RID: 20139 RVA: 0x002779B0 File Offset: 0x00275BB0
41
public
WorldUIAnchor
(
Vector2
anchor)
42
{
43
if
(!
true
)
44
{
45
}
46
if
(
true
)
47
{
48
return
;
49
}
50
if
(!
true
)
51
{
52
}
53
this.size
= 1;
54
base
..ctor();
55
this.type
=
WorldUIAnchor
.
AnchorType
.Pos;
56
}
57
58
// Token: 0x06004EAC RID: 20140 RVA: 0x002779DC File Offset: 0x00275BDC
59
public
WorldUIAnchor
(
int
topLeftX
,
int
topLeftY
,
int
width,
int
height)
60
{
61
if
(!
true
)
62
{
63
}
64
if
(
true
)
65
{
66
return
;
67
}
68
if
(!
true
)
69
{
70
}
71
this.size
= 1;
72
base
..ctor();
73
this.type
=
WorldUIAnchor
.
AnchorType
.Tile;
74
}
75
76
// Token: 0x06004EAD RID: 20141 RVA: 0x00277A0C File Offset: 0x00275C0C
77
public
bool
InRange
(
Vector2
target,
float
tileRangeX,
float
tileRangeY)
78
{
79
WorldUIAnchor.AnchorType
anchorType
= this.
type
;
80
if
(anchorType ==
WorldUIAnchor
.
AnchorType
.Entity)
81
{
82
Vector2
center = this.
entity
.
Center
;
83
if
(anchorType ==
WorldUIAnchor
.
AnchorType
.Entity)
84
{
85
}
86
Entity
entity
= this.
entity
;
87
int
width =
entity
.
width
;
88
Vector2
center2
=
entity
.
Center
;
89
if
(
anchorType
==
WorldUIAnchor
.
AnchorType
.Entity)
90
{
91
}
92
Entity
entity2
= this.
entity
;
93
int
height =
entity2
.
height
;
94
float
x = this.
pos
.
X
;
95
if
(entity2 ==
null
)
96
{
97
}
98
float
y = this.
pos
.
Y
;
99
if
(entity2 ==
null
)
100
{
101
}
102
float
x2
= this.
pos
.
X
;
103
if
(entity2 ==
null
)
104
{
105
}
106
float
x3
= this.
size
.
X
;
107
}
108
return
true
;
109
}
110
111
// Token: 0x040087C0 RID: 34752
112
public
WorldUIAnchor.AnchorType
type
;
113
114
// Token: 0x040087C1 RID: 34753
115
public
Entity
entity
;
116
117
// Token: 0x040087C2 RID: 34754
118
public
Vector2
pos
;
119
120
// Token: 0x040087C3 RID: 34755
121
public
Vector2
size
;
122
123
// Token: 0x02000A6C RID: 2668
124
public
enum
AnchorType
125
{
126
// Token: 0x040087C5 RID: 34757
127
Entity
,
128
// Token: 0x040087C6 RID: 34758
129
Tile
,
130
// Token: 0x040087C7 RID: 34759
131
Pos
,
132
// Token: 0x040087C8 RID: 34760
133
None
134
}
135
}
136
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Terraria.Entity.Center
Vector2 Center
Definition
Entity.cs:134
Terraria.Entity.width
int width
Definition
Entity.cs:478
Terraria.Entity.height
int height
Definition
Entity.cs:481
Terraria.Entity
Definition
Entity.cs:8
Terraria.GameContent.UI.WorldUIAnchor.pos
Vector2 pos
Definition
WorldUIAnchor.cs:118
Terraria.GameContent.UI.WorldUIAnchor.InRange
bool InRange(Vector2 target, float tileRangeX, float tileRangeY)
Definition
WorldUIAnchor.cs:77
Terraria.GameContent.UI.WorldUIAnchor.size
Vector2 size
Definition
WorldUIAnchor.cs:121
Terraria.GameContent.UI.WorldUIAnchor.WorldUIAnchor
WorldUIAnchor(Entity anchor)
Definition
WorldUIAnchor.cs:26
Terraria.GameContent.UI.WorldUIAnchor.entity
Entity entity
Definition
WorldUIAnchor.cs:115
Terraria.GameContent.UI.WorldUIAnchor.AnchorType
AnchorType
Definition
WorldUIAnchor.cs:125
Terraria.GameContent.UI.WorldUIAnchor.AnchorType.Entity
@ Entity
Terraria.GameContent.UI.WorldUIAnchor.AnchorType.None
@ None
Terraria.GameContent.UI.WorldUIAnchor.AnchorType.Tile
@ Tile
Terraria.GameContent.UI.WorldUIAnchor.AnchorType.Pos
@ Pos
Terraria.GameContent.UI.WorldUIAnchor.type
WorldUIAnchor.AnchorType type
Definition
WorldUIAnchor.cs:112
Terraria.GameContent.UI.WorldUIAnchor.WorldUIAnchor
WorldUIAnchor(Vector2 anchor)
Definition
WorldUIAnchor.cs:41
Terraria.GameContent.UI.WorldUIAnchor.WorldUIAnchor
WorldUIAnchor()
Definition
WorldUIAnchor.cs:10
Terraria.GameContent.UI.WorldUIAnchor.WorldUIAnchor
WorldUIAnchor(int topLeftX, int topLeftY, int width, int height)
Definition
WorldUIAnchor.cs:59
Terraria.GameContent.UI.WorldUIAnchor
Definition
WorldUIAnchor.cs:8
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System
Definition
__ComObject.cs:4
Terraria.GameContent.UI
Definition
BigProgressBarCache.cs:4
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
source
Terraria
GameContent
UI
WorldUIAnchor.cs
Generated by
1.10.0