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
SmartSelectGamepadPointer.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Microsoft.Xna.Framework
;
4
5
namespace
Terraria.GameInput
6
{
7
// Token: 0x020006CE RID: 1742
8
public
class
SmartSelectGamepadPointer
9
{
10
// Token: 0x060039F9 RID: 14841 RVA: 0x0022F7E0 File Offset: 0x0022D9E0
11
public
bool
ShouldBeUsed
()
12
{
13
if
(!
true
)
14
{
15
}
16
bool
usingGamepad
=
PlayerInput
.
UsingGamepad
;
17
if
(!
true
)
18
{
19
}
20
bool
controlTorch =
Main
.
LocalPlayer
.
controlTorch
;
21
if
(controlTorch)
22
{
23
if
(!controlTorch)
24
{
25
}
26
return
Main
.
SmartCursorIsUsed
;
27
}
28
}
29
30
// Token: 0x060039FA RID: 14842 RVA: 0x0022F81C File Offset: 0x0022DA1C
31
public
void
SmartSelectLookup_GetTargetTile
(
Player
player, [Out]
int
tX
, [Out]
int
tY
)
32
{
33
if
(!
true
)
34
{
35
}
36
int
worldMouseX =
Main
.
worldMouseX
;
37
Vector2
screenPosition =
Main
.
screenPosition
;
38
tX.m_value
= 15744;
39
int
worldMouseY =
Main
.
worldMouseY
;
40
Vector2
screenPosition2
=
Main
.
screenPosition
;
41
tY.m_value
= 15744;
42
float
gravDir = player.
gravDir
;
43
if
(15744 == 0)
44
{
45
}
46
Vector2
screenPosition3
=
Main
.
screenPosition
;
47
int
screenHeight =
Main
.
screenHeight
;
48
int
mouseY =
Main
.
mouseY
;
49
tY.m_value
= 15744;
50
Vector2
pointerPosition
= this.
GetPointerPosition
();
51
if
(15744 == 0)
52
{
53
}
54
if
(32768 == 0)
55
{
56
}
57
Vector2
screenPosition4
=
Main
.
screenPosition
;
58
tX.m_value
= 15744;
59
Vector2
screenPosition5
=
Main
.
screenPosition
;
60
tY.m_value
= 15744;
61
float
gravDir2
= player.
gravDir
;
62
if
(15744 == 0)
63
{
64
}
65
Vector2
screenPosition6
=
Main
.
screenPosition
;
66
int
screenHeight2
=
Main
.
screenHeight
;
67
tY.m_value
= 15744;
68
}
69
70
// Token: 0x060039FB RID: 14843 RVA: 0x0022F910 File Offset: 0x0022DB10
71
public
void
UpdateSize
(
Vector2
size)
72
{
73
}
74
75
// Token: 0x060039FC RID: 14844 RVA: 0x0022F920 File Offset: 0x0022DB20
76
public
void
UpdateCenter
(
Vector2
center)
77
{
78
}
79
80
// Token: 0x060039FD RID: 14845 RVA: 0x0022F930 File Offset: 0x0022DB30
81
public
Vector2
GetPointerPosition
()
82
{
83
if
(!
true
)
84
{
85
}
86
int
worldMouseX =
Main
.
worldMouseX
;
87
int
worldMouseY =
Main
.
worldMouseY
;
88
float
x = this.
_center
.
X
;
89
float
y = this.
_center
.
Y
;
90
if
(!
true
)
91
{
92
}
93
float
x2
= this.
_size
.
X
;
94
float
y2
= this.
_size
.
Y
;
95
if
(!
true
)
96
{
97
}
98
if
(!
true
)
99
{
100
}
101
if
(!
true
)
102
{
103
}
104
if
(!
true
)
105
{
106
}
107
float
x3
= this.
_distUniform
.
X
;
108
float
y3
= this.
_distUniform
.
Y
;
109
float
x4
= this.
_center
.
X
;
110
float
y4
= this.
_center
.
Y
;
111
return
1;
112
}
113
114
// Token: 0x060039FE RID: 14846 RVA: 0x0022F9DC File Offset: 0x0022DBDC
115
public
SmartSelectGamepadPointer
()
116
{
117
}
118
119
// Token: 0x04007A2F RID: 31279
120
private
Vector2
_size
;
121
122
// Token: 0x04007A30 RID: 31280
123
private
Vector2
_center
;
124
125
// Token: 0x04007A31 RID: 31281
126
private
Vector2
_distUniform
= 17056;
127
}
128
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Terraria.GameInput.PlayerInput.UsingGamepad
static bool UsingGamepad
Definition
PlayerInput.cs:449
Terraria.GameInput.PlayerInput
Definition
PlayerInput.cs:15
Terraria.GameInput.SmartSelectGamepadPointer.SmartSelectGamepadPointer
SmartSelectGamepadPointer()
Definition
SmartSelectGamepadPointer.cs:115
Terraria.GameInput.SmartSelectGamepadPointer.UpdateSize
void UpdateSize(Vector2 size)
Definition
SmartSelectGamepadPointer.cs:71
Terraria.GameInput.SmartSelectGamepadPointer._size
Vector2 _size
Definition
SmartSelectGamepadPointer.cs:120
Terraria.GameInput.SmartSelectGamepadPointer._distUniform
Vector2 _distUniform
Definition
SmartSelectGamepadPointer.cs:126
Terraria.GameInput.SmartSelectGamepadPointer.UpdateCenter
void UpdateCenter(Vector2 center)
Definition
SmartSelectGamepadPointer.cs:76
Terraria.GameInput.SmartSelectGamepadPointer.ShouldBeUsed
bool ShouldBeUsed()
Definition
SmartSelectGamepadPointer.cs:11
Terraria.GameInput.SmartSelectGamepadPointer.GetPointerPosition
Vector2 GetPointerPosition()
Definition
SmartSelectGamepadPointer.cs:81
Terraria.GameInput.SmartSelectGamepadPointer._center
Vector2 _center
Definition
SmartSelectGamepadPointer.cs:123
Terraria.GameInput.SmartSelectGamepadPointer.SmartSelectLookup_GetTargetTile
void SmartSelectLookup_GetTargetTile(Player player, [Out] int tX, [Out] int tY)
Definition
SmartSelectGamepadPointer.cs:31
Terraria.GameInput.SmartSelectGamepadPointer
Definition
SmartSelectGamepadPointer.cs:9
Terraria.Main.screenPosition
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition
Main.cs:1973
Terraria.Main.screenHeight
static int screenHeight
Definition
Main.cs:2015
Terraria.Main.SmartCursorIsUsed
static bool SmartCursorIsUsed
Definition
Main.cs:5607
Terraria.Main.worldMouseY
static int worldMouseY
Definition
Main.cs:629
Terraria.Main.mouseY
static int mouseY
Definition
Main.cs:601
Terraria.Main.LocalPlayer
static Player LocalPlayer
Definition
Main.cs:5267
Terraria.Main.worldMouseX
static int worldMouseX
Definition
Main.cs:615
Terraria.Main
Definition
Main.cs:67
Terraria.Player.gravDir
float gravDir
Definition
Player.cs:21815
Terraria.Player.controlTorch
bool controlTorch
Definition
Player.cs:21497
Terraria.Player
Definition
Player.cs:33
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Runtime.InteropServices
Definition
_Activator.cs:4
System
Definition
__ComObject.cs:4
Terraria.GameInput
Definition
CursorMode.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
GameInput
SmartSelectGamepadPointer.cs
Generated by
1.10.0