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.
1using System;
5
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
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 {
31 this.Dust = dust;
32 this.Gore = gore;
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;
47 if (player.head == 0 && player.hairDye == 0)
48 {
49 if (player == null)
50 {
51 }
53 int num2;
55 }
56 int num3;
60 int num4 = player4.cHead;
62 int num5 = player4.cFaceFlower;
65 int num6 = player4.cBeard;
67 bool hasUnicornHorn = player4.hasUnicornHorn;
68 this.drawUnicornHorn = hasUnicornHorn;
69 bool hasAngelHalo = player4.hasAngelHalo;
70 this.drawAngelHalo = hasAngelHalo;
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;
82 Color color;
83 this.colorEyeWhites = color;
87 long num7 = 0L;
88 Color color3 = Main.quickAlpha(player7.GetHairColor(num7 != 0L), Alpha);
97 if (player9.isDisplayDollOrInanimate)
98 {
99 if (player9 == null)
100 {
101 }
102 player10 = this.drawPlayer;
105 return;
106 }
107 Color color7 = this.colorHead;
109 int direction = player10.direction;
110 this.playerEffect = (SpriteEffects)direction;
111 int width = player10.legFrame.Width;
112 int height = player10.legFrame.Height;
115 if (player10 == null)
116 {
117 }
118 Vector2 screenPosition = Main.screenPosition;
121 int head = player12.head;
122 if (player12 == null)
123 {
124 }
125 int head2 = this.drawPlayer.head;
128 if (player14 == null)
129 {
130 }
131 if (player14 == null)
132 {
133 }
135 long entityId = player14.entityId;
137 if (player16 == null)
138 {
139 }
140 if (player16 == null)
141 {
142 }
144 long entityId2 = player16.entityId;
146 if (player18 == null)
147 {
148 }
149 if (player18 == null)
150 {
151 }
153 long entityId3 = player18.entityId;
155 if (player20 == null)
156 {
157 }
158 if (player20 == null)
159 {
160 }
162 long entityId4 = player20.entityId;
165 bool flag = this.hatHair;
166 int hair2 = player23.hair;
167 Vector2 hairDrawOffset = player23.GetHairDrawOffset(hair2, flag);
169 this.hairOffset.Y = (float)width;
170 Vector2 directions = player24.Directions;
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
185
186 // Token: 0x0400779F RID: 30623
188
189 // Token: 0x040077A0 RID: 30624
191
192 // Token: 0x040077A1 RID: 30625
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
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
230
231 // Token: 0x040077AE RID: 30638
233
234 // Token: 0x040077AF RID: 30639
236
237 // Token: 0x040077B0 RID: 30640
239
240 // Token: 0x040077B1 RID: 30641
242
243 // Token: 0x040077B2 RID: 30642
245
246 // Token: 0x040077B3 RID: 30643
248
249 // Token: 0x040077B4 RID: 30644
251
252 // Token: 0x040077B5 RID: 30645
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
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
281
282 // Token: 0x040077BF RID: 30655
284
285 // Token: 0x040077C0 RID: 30656
287 }
288}
class f__AnonymousType0<< Count > j__TPar
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static Microsoft.Xna.Framework.Graphics.Color quickAlpha(Microsoft.Xna.Framework.Graphics.Color oldColor, float Alpha)
Definition Main.cs:11315
int HeightMapOffset
Definition Player.cs:289
Microsoft.Xna.Framework.Vector2 GetHelmetDrawOffset()
Definition Player.cs:1878
void BoringSetup(Player drawPlayer2, DrawData[] drawData, List< int > dust, List< int > gore, float X, float Y, float Alpha, float Scale)