TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetHairDrawOffset()

Vector2 Terraria.Player.GetHairDrawOffset ( int hairID,
bool hatHair )
inline

Definition at line 5011 of file Player.cs.

5012 {
5013 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
5014 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
5015 //IL_004f: Unknown result type (might be due to invalid IL or missing references)
5016 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
5017 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
5018 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
5019 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
5020 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
5021 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
5022 Vector2 zero = Vector2.Zero;
5023 if (!hatHair && hairID == 163)
5024 {
5025 return new Vector2(0f, -2f) * Directions;
5026 }
5027 if (hairID == 164)
5028 {
5029 return new Vector2(-2f, 0f) * Directions;
5030 }
5031 return zero;
5032 }
Vector2 Directions
Definition Player.cs:4189

References Terraria.Player.Directions.

Referenced by Terraria.DataStructures.PlayerDrawSet.BoringSetup_End(), and Terraria.DataStructures.PlayerDrawSet.HeadOnlySetup().

+ Here is the caller graph for this function: