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.
1using System;
4
5namespace Terraria.GameInput
6{
7 // Token: 0x020006CE RID: 1742
9 {
10 // Token: 0x060039F9 RID: 14841 RVA: 0x0022F7E0 File Offset: 0x0022D9E0
11 public bool ShouldBeUsed()
12 {
13 if (!true)
14 {
15 }
17 if (!true)
18 {
19 }
20 bool controlTorch = Main.LocalPlayer.controlTorch;
21 if (controlTorch)
22 {
23 if (!controlTorch)
24 {
25 }
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;
41 tY.m_value = 15744;
42 float gravDir = player.gravDir;
43 if (15744 == 0)
44 {
45 }
47 int screenHeight = Main.screenHeight;
48 int mouseY = Main.mouseY;
49 tY.m_value = 15744;
51 if (15744 == 0)
52 {
53 }
54 if (32768 == 0)
55 {
56 }
58 tX.m_value = 15744;
60 tY.m_value = 15744;
61 float gravDir2 = player.gravDir;
62 if (15744 == 0)
63 {
64 }
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
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
116 {
117 }
118
119 // Token: 0x04007A2F RID: 31279
120 private Vector2 _size;
121
122 // Token: 0x04007A30 RID: 31280
124
125 // Token: 0x04007A31 RID: 31281
126 private Vector2 _distUniform = 17056;
127 }
128}
class f__AnonymousType0<< Count > j__TPar
void SmartSelectLookup_GetTargetTile(Player player, [Out] int tX, [Out] int tY)
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int screenHeight
Definition Main.cs:2015
static bool SmartCursorIsUsed
Definition Main.cs:5607
static int worldMouseY
Definition Main.cs:629
static int mouseY
Definition Main.cs:601
static Player LocalPlayer
Definition Main.cs:5267
static int worldMouseX
Definition Main.cs:615