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
PlayerDrawHeadSet.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
Microsoft.Xna.Framework
;
4
using
Microsoft.Xna.Framework.Graphics
;
5
6
namespace
Terraria.DataStructures
7
{
8
// Token: 0x02000643 RID: 1603
9
public
struct
PlayerDrawHeadSet
10
{
11
// Token: 0x060036BE RID: 14014 RVA: 0x0021E2A8 File Offset: 0x0021C4A8
12
public
void
AddDrawData
(
DrawData
data)
13
{
14
DrawData
[]
drawData
= this.
DrawData
;
15
}
16
17
// Token: 0x170006A4 RID: 1700
18
// (get) Token: 0x060036BF RID: 14015 RVA: 0x0021E2BC File Offset: 0x0021C4BC
19
public
Rectangle
HairFrame
20
{
21
get
22
{
23
return
this.
bodyFrameMemory
;
24
}
25
}
26
27
// Token: 0x060036C0 RID: 14016 RVA: 0x0021E2D0 File Offset: 0x0021C4D0
28
public
void
BoringSetup
(
Player
drawPlayer2
,
DrawData
[]
drawData
,
List<int>
dust,
List<int>
gore,
float
X
,
float
Y
,
float
Alpha
,
float
Scale)
29
{
30
this.DrawData
=
drawData
;
31
this.Dust
= dust;
32
this.Gore
= gore;
33
this.drawPlayer
=
drawPlayer2
;
34
Vector2
position =
drawPlayer2
.position;
35
this.cHead
= (int)
X
;
36
this.cUnicornHorn
= (int)
X
;
37
this.Position
= position;
38
int
skinVariant =
drawPlayer2
.skinVariant;
39
this.skinVar
= skinVariant;
40
byte
hairDye =
drawPlayer2
.hairDye;
41
if
(skinVariant == 0)
42
{
43
}
44
Player
player = this.
drawPlayer
;
45
int
num;
46
this.hairShaderPacked
= num;
47
if
(player.
head
== 0 && player.
hairDye
== 0)
48
{
49
if
(player ==
null
)
50
{
51
}
52
Player
player2
= this.
drawPlayer
;
53
int
num2
;
54
this.hairShaderPacked
=
num2
;
55
}
56
int
num3
;
57
this.skinDyePacked
=
num3
;
58
Player
player3
= this.
drawPlayer
;
59
Player
player4
= this.
drawPlayer
;
60
int
num4
= player4.
cHead
;
61
this.cHead
=
num4
;
62
int
num5
=
player4
.cFaceFlower;
63
this.cFaceFlower
=
num5
;
64
this.cUnicornHorn
=
num5
;
65
int
num6
=
player4
.cBeard;
66
this.cBeard
=
num6
;
67
bool
hasUnicornHorn =
player4
.hasUnicornHorn;
68
this.drawUnicornHorn
= hasUnicornHorn;
69
bool
hasAngelHalo =
player4
.hasAngelHalo;
70
this.drawAngelHalo
= hasAngelHalo;
71
Player
player5
;
72
if
(!hasAngelHalo)
73
{
74
player5
= this.
drawPlayer
;
75
}
76
int
hair =
player5
.
hair
;
77
if
(
player5
==
null
)
78
{
79
}
80
int
gemCount =
player5
.gemCount;
81
Player
player6
= this.
drawPlayer
;
82
Color
color;
83
this.colorEyeWhites
= color;
84
Color
color2
=
Main
.
quickAlpha
(
player6
.eyeColor,
Alpha
);
85
Player
player7
= this.
drawPlayer
;
86
this.colorEyes
=
color2
;
87
long
num7
= 0
L
;
88
Color
color3
=
Main
.
quickAlpha
(
player7
.GetHairColor(
num7
!= 0
L
),
Alpha
);
89
Player
player8
= this.
drawPlayer
;
90
this.colorHair
=
color3
;
91
Color
color4
=
Main
.
quickAlpha
(
player8
.skinColor,
Alpha
);
92
this.colorHead
=
color4
;
93
Color
color5
=
Main
.
quickAlpha
(
color4
,
Alpha
);
94
Player
player9
= this.
drawPlayer
;
95
this.colorArmorHead
=
color5
;
96
Player
player10
;
97
if
(
player9
.isDisplayDollOrInanimate)
98
{
99
if
(
player9
==
null
)
100
{
101
}
102
player10
= this.
drawPlayer
;
103
Color
color6
;
104
this.colorDisplayDollSkin
=
color6
;
105
return
;
106
}
107
Color
color7
= this.
colorHead
;
108
this.colorDisplayDollSkin
=
color7
;
109
int
direction =
player10
.direction;
110
this.playerEffect
= (
SpriteEffects
)direction;
111
int
width =
player10
.legFrame.Width;
112
int
height =
player10
.legFrame.Height;
113
Player
player11
= this.
drawPlayer
;
114
this.headVect
=
player10
;
115
if
(player10 ==
null
)
116
{
117
}
118
Vector2
screenPosition =
Main
.
screenPosition
;
119
int
heightMapOffset
= this.
drawPlayer
.
HeightMapOffset
;
120
Player
player12
= this.
drawPlayer
;
121
int
head =
player12
.
head
;
122
if
(
player12
==
null
)
123
{
124
}
125
int
head2
= this.
drawPlayer
.
head
;
126
Player
player13
= this.
drawPlayer
;
127
Player
player14
= this.
drawPlayer
;
128
if
(player14 ==
null
)
129
{
130
}
131
if
(
player14
==
null
)
132
{
133
}
134
Player
player15
= this.
drawPlayer
;
135
long
entityId =
player14
.
entityId
;
136
Player
player16
= this.
drawPlayer
;
137
if
(player16 ==
null
)
138
{
139
}
140
if
(
player16
==
null
)
141
{
142
}
143
Player
player17
= this.
drawPlayer
;
144
long
entityId2
= player16.
entityId
;
145
Player
player18
= this.
drawPlayer
;
146
if
(player18 ==
null
)
147
{
148
}
149
if
(
player18
==
null
)
150
{
151
}
152
Player
player19
= this.
drawPlayer
;
153
long
entityId3
= player18.
entityId
;
154
Player
player20
= this.
drawPlayer
;
155
if
(player20 ==
null
)
156
{
157
}
158
if
(
player20
==
null
)
159
{
160
}
161
Player
player21
= this.
drawPlayer
;
162
long
entityId4
= player20.
entityId
;
163
Player
player22
= this.
drawPlayer
;
164
Player
player23
= this.
drawPlayer
;
165
bool
flag = this.
hatHair
;
166
int
hair2
= player23.
hair
;
167
Vector2
hairDrawOffset
=
player23
.GetHairDrawOffset(
hair2
, flag);
168
Player
player24
= this.
drawPlayer
;
169
this.hairOffset.Y
= (float)width;
170
Vector2
directions
=
player24
.Directions;
171
Vector2
helmetDrawOffset
= this.
drawPlayer
.
GetHelmetDrawOffset
();
172
Player
player25
= this.
drawPlayer
;
173
this.helmetOffset.Y
= (float)width;
174
Vector2
directions2
=
player25
.Directions;
175
int
head3
= this.
drawPlayer
.
head
;
176
int
num8
= 1;
177
this.helmetIsTall
= num8 != 0;
178
}
179
180
// Token: 0x0400779D RID: 30621
181
public
int
DrawDataCount
;
182
183
// Token: 0x0400779E RID: 30622
184
public
DrawData
[]
DrawData
;
185
186
// Token: 0x0400779F RID: 30623
187
public
List<int>
Dust
;
188
189
// Token: 0x040077A0 RID: 30624
190
public
List<int>
Gore
;
191
192
// Token: 0x040077A1 RID: 30625
193
public
Player
drawPlayer
;
194
195
// Token: 0x040077A2 RID: 30626
196
public
int
cHead
;
197
198
// Token: 0x040077A3 RID: 30627
199
public
int
cFace
;
200
201
// Token: 0x040077A4 RID: 30628
202
public
int
cFaceHead
;
203
204
// Token: 0x040077A5 RID: 30629
205
public
int
cFaceFlower
;
206
207
// Token: 0x040077A6 RID: 30630
208
public
int
cUnicornHorn
;
209
210
// Token: 0x040077A7 RID: 30631
211
public
int
cAngelHalo
;
212
213
// Token: 0x040077A8 RID: 30632
214
public
int
cBeard
;
215
216
// Token: 0x040077A9 RID: 30633
217
public
int
skinVar
;
218
219
// Token: 0x040077AA RID: 30634
220
public
int
hairShaderPacked
;
221
222
// Token: 0x040077AB RID: 30635
223
public
int
skinDyePacked
;
224
225
// Token: 0x040077AC RID: 30636
226
public
float
scale
;
227
228
// Token: 0x040077AD RID: 30637
229
public
Color
colorEyeWhites
;
230
231
// Token: 0x040077AE RID: 30638
232
public
Color
colorEyes
;
233
234
// Token: 0x040077AF RID: 30639
235
public
Color
colorHair
;
236
237
// Token: 0x040077B0 RID: 30640
238
public
Color
colorHead
;
239
240
// Token: 0x040077B1 RID: 30641
241
public
Color
colorArmorHead
;
242
243
// Token: 0x040077B2 RID: 30642
244
public
Color
colorDisplayDollSkin
;
245
246
// Token: 0x040077B3 RID: 30643
247
public
SpriteEffects
playerEffect
;
248
249
// Token: 0x040077B4 RID: 30644
250
public
Vector2
headVect
;
251
252
// Token: 0x040077B5 RID: 30645
253
public
Rectangle
bodyFrameMemory
;
254
255
// Token: 0x040077B6 RID: 30646
256
public
bool
fullHair
;
257
258
// Token: 0x040077B7 RID: 30647
259
public
bool
hatHair
;
260
261
// Token: 0x040077B8 RID: 30648
262
public
bool
hideHair
;
263
264
// Token: 0x040077B9 RID: 30649
265
public
bool
helmetIsTall
;
266
267
// Token: 0x040077BA RID: 30650
268
public
bool
helmetIsOverFullHair
;
269
270
// Token: 0x040077BB RID: 30651
271
public
bool
helmetIsNormal
;
272
273
// Token: 0x040077BC RID: 30652
274
public
bool
drawUnicornHorn
;
275
276
// Token: 0x040077BD RID: 30653
277
public
bool
drawAngelHalo
;
278
279
// Token: 0x040077BE RID: 30654
280
public
Vector2
Position
;
281
282
// Token: 0x040077BF RID: 30655
283
public
Vector2
hairOffset
;
284
285
// Token: 0x040077C0 RID: 30656
286
public
Vector2
helmetOffset
;
287
}
288
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Collections.Generic.List
Definition
List.cs:13
Terraria.Entity.entityId
long entityId
Definition
Entity.cs:457
Terraria.Main.screenPosition
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition
Main.cs:1973
Terraria.Main.quickAlpha
static Microsoft.Xna.Framework.Graphics.Color quickAlpha(Microsoft.Xna.Framework.Graphics.Color oldColor, float Alpha)
Definition
Main.cs:11315
Terraria.Main
Definition
Main.cs:67
Terraria.Player.HeightMapOffset
int HeightMapOffset
Definition
Player.cs:289
Terraria.Player.head
int head
Definition
Player.cs:21374
Terraria.Player.cHead
int cHead
Definition
Player.cs:23144
Terraria.Player.GetHelmetDrawOffset
Microsoft.Xna.Framework.Vector2 GetHelmetDrawOffset()
Definition
Player.cs:1878
Terraria.Player.hair
int hair
Definition
Player.cs:22634
Terraria.Player.hairDye
byte hairDye
Definition
Player.cs:22601
Terraria.Player
Definition
Player.cs:33
Microsoft.Xna.Framework.Graphics.ColorWriteChannels.Alpha
@ Alpha
Microsoft.Xna.Framework.Graphics.SpriteEffects
SpriteEffects
Definition
SpriteEffects.cs:8
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.ConsoleKey.X
@ X
System.ConsoleKey.Y
@ Y
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.DataStructures
Definition
AEntitySource_OnHit.cs:4
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:9
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Terraria.DataStructures.DrawData
Definition
DrawData.cs:9
Terraria.DataStructures.PlayerDrawHeadSet.BoringSetup
void BoringSetup(Player drawPlayer2, DrawData[] drawData, List< int > dust, List< int > gore, float X, float Y, float Alpha, float Scale)
Definition
PlayerDrawHeadSet.cs:28
Terraria.DataStructures.PlayerDrawHeadSet.cFaceFlower
int cFaceFlower
Definition
PlayerDrawHeadSet.cs:205
Terraria.DataStructures.PlayerDrawHeadSet.Dust
List< int > Dust
Definition
PlayerDrawHeadSet.cs:187
Terraria.DataStructures.PlayerDrawHeadSet.cUnicornHorn
int cUnicornHorn
Definition
PlayerDrawHeadSet.cs:208
Terraria.DataStructures.PlayerDrawHeadSet.HairFrame
Rectangle HairFrame
Definition
PlayerDrawHeadSet.cs:20
Terraria.DataStructures.PlayerDrawHeadSet.AddDrawData
void AddDrawData(DrawData data)
Definition
PlayerDrawHeadSet.cs:12
Terraria.DataStructures.PlayerDrawHeadSet.cHead
int cHead
Definition
PlayerDrawHeadSet.cs:196
Terraria.DataStructures.PlayerDrawHeadSet.hairShaderPacked
int hairShaderPacked
Definition
PlayerDrawHeadSet.cs:220
Terraria.DataStructures.PlayerDrawHeadSet.skinDyePacked
int skinDyePacked
Definition
PlayerDrawHeadSet.cs:223
Terraria.DataStructures.PlayerDrawHeadSet.colorEyes
Color colorEyes
Definition
PlayerDrawHeadSet.cs:232
Terraria.DataStructures.PlayerDrawHeadSet.hatHair
bool hatHair
Definition
PlayerDrawHeadSet.cs:259
Terraria.DataStructures.PlayerDrawHeadSet.helmetOffset
Vector2 helmetOffset
Definition
PlayerDrawHeadSet.cs:286
Terraria.DataStructures.PlayerDrawHeadSet.colorHead
Color colorHead
Definition
PlayerDrawHeadSet.cs:238
Terraria.DataStructures.PlayerDrawHeadSet.DrawData
DrawData[] DrawData
Definition
PlayerDrawHeadSet.cs:184
Terraria.DataStructures.PlayerDrawHeadSet.drawUnicornHorn
bool drawUnicornHorn
Definition
PlayerDrawHeadSet.cs:274
Terraria.DataStructures.PlayerDrawHeadSet.fullHair
bool fullHair
Definition
PlayerDrawHeadSet.cs:256
Terraria.DataStructures.PlayerDrawHeadSet.hairOffset
Vector2 hairOffset
Definition
PlayerDrawHeadSet.cs:283
Terraria.DataStructures.PlayerDrawHeadSet.drawAngelHalo
bool drawAngelHalo
Definition
PlayerDrawHeadSet.cs:277
Terraria.DataStructures.PlayerDrawHeadSet.helmetIsTall
bool helmetIsTall
Definition
PlayerDrawHeadSet.cs:265
Terraria.DataStructures.PlayerDrawHeadSet.scale
float scale
Definition
PlayerDrawHeadSet.cs:226
Terraria.DataStructures.PlayerDrawHeadSet.helmetIsOverFullHair
bool helmetIsOverFullHair
Definition
PlayerDrawHeadSet.cs:268
Terraria.DataStructures.PlayerDrawHeadSet.helmetIsNormal
bool helmetIsNormal
Definition
PlayerDrawHeadSet.cs:271
Terraria.DataStructures.PlayerDrawHeadSet.drawPlayer
Player drawPlayer
Definition
PlayerDrawHeadSet.cs:193
Terraria.DataStructures.PlayerDrawHeadSet.skinVar
int skinVar
Definition
PlayerDrawHeadSet.cs:217
Terraria.DataStructures.PlayerDrawHeadSet.cBeard
int cBeard
Definition
PlayerDrawHeadSet.cs:214
Terraria.DataStructures.PlayerDrawHeadSet.colorDisplayDollSkin
Color colorDisplayDollSkin
Definition
PlayerDrawHeadSet.cs:244
Terraria.DataStructures.PlayerDrawHeadSet.cFace
int cFace
Definition
PlayerDrawHeadSet.cs:199
Terraria.DataStructures.PlayerDrawHeadSet.cFaceHead
int cFaceHead
Definition
PlayerDrawHeadSet.cs:202
Terraria.DataStructures.PlayerDrawHeadSet.Gore
List< int > Gore
Definition
PlayerDrawHeadSet.cs:190
Terraria.DataStructures.PlayerDrawHeadSet.DrawDataCount
int DrawDataCount
Definition
PlayerDrawHeadSet.cs:181
Terraria.DataStructures.PlayerDrawHeadSet.colorEyeWhites
Color colorEyeWhites
Definition
PlayerDrawHeadSet.cs:229
Terraria.DataStructures.PlayerDrawHeadSet.colorArmorHead
Color colorArmorHead
Definition
PlayerDrawHeadSet.cs:241
Terraria.DataStructures.PlayerDrawHeadSet.cAngelHalo
int cAngelHalo
Definition
PlayerDrawHeadSet.cs:211
Terraria.DataStructures.PlayerDrawHeadSet.colorHair
Color colorHair
Definition
PlayerDrawHeadSet.cs:235
Terraria.DataStructures.PlayerDrawHeadSet.headVect
Vector2 headVect
Definition
PlayerDrawHeadSet.cs:250
Terraria.DataStructures.PlayerDrawHeadSet.hideHair
bool hideHair
Definition
PlayerDrawHeadSet.cs:262
Terraria.DataStructures.PlayerDrawHeadSet.playerEffect
SpriteEffects playerEffect
Definition
PlayerDrawHeadSet.cs:247
Terraria.DataStructures.PlayerDrawHeadSet.Position
Vector2 Position
Definition
PlayerDrawHeadSet.cs:280
Terraria.DataStructures.PlayerDrawHeadSet.bodyFrameMemory
Rectangle bodyFrameMemory
Definition
PlayerDrawHeadSet.cs:253
Terraria.DataStructures.PlayerDrawHeadSet
Definition
PlayerDrawHeadSet.cs:10
source
Terraria
DataStructures
PlayerDrawHeadSet.cs
Generated by
1.10.0