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
NewMultiplayerClosePlayersOverlay.cs
Go to the documentation of this file.
1using System;
8
10{
11 // Token: 0x02000A64 RID: 2660
13 {
14 // Token: 0x06004E8B RID: 20107 RVA: 0x000021DB File Offset: 0x000003DB
15 public void Draw()
16 {
17 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18 }
19
20 // Token: 0x06004E8C RID: 20108 RVA: 0x00276F3C File Offset: 0x0027513C
21 private static void GetDistance(int testWidth, int testHeight, Vector2 testPosition, Player localPlayer, SpriteFont font, Player player, string nameToShow, [Out] Vector2 namePlatePos, [Out] float namePlateDist, [Out] Vector2 measurement)
22 {
23 if (!true)
24 {
25 }
26 if (!true)
27 {
28 }
29 int screenWidth = Main.screenWidth;
30 int screenHeight = Main.screenHeight;
31 bool hasValue = font._defaultCharacter.hasValue;
37 }
38
39 // Token: 0x06004E8D RID: 20109 RVA: 0x00276FEC File Offset: 0x002751EC
43
44 // Token: 0x040087A8 RID: 34728
46
47 // Token: 0x040087A9 RID: 34729
49
50 // Token: 0x02000A65 RID: 2661
51 private struct PlayerOnScreenCache
52 {
53 // Token: 0x06004E8E RID: 20110 RVA: 0x00277000 File Offset: 0x00275200
54 public PlayerOnScreenCache(string name, Vector2 pos, Color color)
55 {
57 this._color = pos;
58 }
59
60 // Token: 0x06004E8F RID: 20111 RVA: 0x0027701C File Offset: 0x0027521C
62 {
63 float x = this._pos.X;
64 float y = this._pos.Y;
65 float x2 = this._pos.X;
66 float y2 = this._pos.Y;
67 float x3 = this._pos.X;
68 float y3 = this._pos.Y;
69 float x4 = this._pos.X;
70 float y4 = this._pos.Y;
71 float x5 = this._pos.X;
72 float y5 = this._pos.Y;
73 Color color = this._color;
74 }
75
76 // Token: 0x040087AA RID: 34730
77 private string _name;
78
79 // Token: 0x040087AB RID: 34731
80 private Vector2 _pos;
81
82 // Token: 0x040087AC RID: 34732
83 private Color _color;
84 }
85
86 // Token: 0x02000A66 RID: 2662
87 private struct PlayerOffScreenCache
88 {
89 // Token: 0x06004E90 RID: 20112 RVA: 0x002770B4 File Offset: 0x002752B4
91 {
93 if (!true)
94 {
95 }
98 Vector2 vector = vector2.Floor();
99 this.distanceString = color;
101 }
102
103 // Token: 0x06004E91 RID: 20113 RVA: 0x002770EC File Offset: 0x002752EC
104 public void DrawPlayerName(SpriteBatch spriteBatch)
105 {
106 float x = this.namePlatePos.X;
107 float y = this.namePlatePos.Y;
108 if (49696 == 0)
109 {
110 }
111 if (49696 == 0)
112 {
113 }
114 string text = this.nameToShow;
115 if (49696 == 0)
116 {
117 }
118 string text2 = this.nameToShow;
119 string text3 = this.nameToShow;
120 string text4 = this.nameToShow;
121 string text5 = this.nameToShow;
122 Color color = this.namePlateColor;
123 }
124
125 // Token: 0x06004E92 RID: 20114 RVA: 0x00277158 File Offset: 0x00275358
126 public void DrawPlayerHead()
127 {
128 float x = this.measurement.X;
129 int num = 49834;
130 if (num == 0)
131 {
132 }
133 float x2 = this.namePlatePos.X;
134 float y = this.namePlatePos.Y;
135 if (num == 0)
136 {
137 }
138 Camera camera = Main.Camera;
139 }
140
141 // Token: 0x06004E93 RID: 20115 RVA: 0x002771A4 File Offset: 0x002753A4
142 public void DrawLifeBar()
143 {
144 float x = this.distanceDrawPosition.X;
145 float y = this.distanceDrawPosition.Y;
146 if (!true)
147 {
148 }
149 }
150
151 // Token: 0x06004E94 RID: 20116 RVA: 0x002771D0 File Offset: 0x002753D0
152 public void DrawPlayerDistance(SpriteBatch spriteBatch)
153 {
154 if (!true)
155 {
156 }
157 float x = this.distanceDrawPosition.X;
158 float y = this.distanceDrawPosition.Y;
159 string text = this.distanceString;
160 if (!true)
161 {
162 }
163 float x2 = this.distanceDrawPosition.X;
164 float y2 = this.distanceDrawPosition.Y;
165 string text2 = this.distanceString;
166 float x3 = this.distanceDrawPosition.X;
167 float y3 = this.distanceDrawPosition.Y;
168 string text3 = this.distanceString;
169 float x4 = this.distanceDrawPosition.X;
170 float y4 = this.distanceDrawPosition.Y;
171 string text4 = this.distanceString;
172 string text5 = this.distanceString;
173 float x5 = this.distanceDrawPosition.X;
174 float y5 = this.distanceDrawPosition.Y;
175 Color color = this.namePlateColor;
176 }
177
178 // Token: 0x040087AD RID: 34733
179 private Player player;
180
181 // Token: 0x040087AE RID: 34734
182 private string nameToShow;
183
184 // Token: 0x040087AF RID: 34735
186
187 // Token: 0x040087B0 RID: 34736
189
190 // Token: 0x040087B1 RID: 34737
192
193 // Token: 0x040087B2 RID: 34738
194 private string distanceString;
195
196 // Token: 0x040087B3 RID: 34739
198 }
199 }
200}
class f__AnonymousType0<< Count > j__TPar
static void GetDistance(int testWidth, int testHeight, Vector2 testPosition, Player localPlayer, SpriteFont font, Player player, string nameToShow, [Out] Vector2 namePlatePos, [Out] float namePlateDist, [Out] Vector2 measurement)
List< NewMultiplayerClosePlayersOverlay.PlayerOnScreenCache > _playerOnScreenCache
List< NewMultiplayerClosePlayersOverlay.PlayerOffScreenCache > _playerOffScreenCache
static int screenHeight
Definition Main.cs:2015
static Terraria.Graphics.Camera Camera
Definition Main.cs:296
static int screenWidth
Definition Main.cs:2001
PlayerOffScreenCache(string name, Vector2 pos, Color color, Vector2 npDistPos, string npDist, Player thePlayer, Vector2 theMeasurement)