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

◆ UpdateSocialShadow()

void Terraria.Player.UpdateSocialShadow ( )
inline

Definition at line 14598 of file Player.cs.

14599 {
14600 //IL_0051: Unknown result type (might be due to invalid IL or missing references)
14601 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
14602 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
14603 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
14604 //IL_009b: Unknown result type (might be due to invalid IL or missing references)
14605 //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
14606 //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
14607 //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
14608 //IL_00e6: Unknown result type (might be due to invalid IL or missing references)
14609 //IL_00eb: Unknown result type (might be due to invalid IL or missing references)
14610 //IL_0121: Unknown result type (might be due to invalid IL or missing references)
14611 //IL_0126: Unknown result type (might be due to invalid IL or missing references)
14612 for (int num = 2; num > 0; num--)
14613 {
14615 }
14617 shadowCount++;
14618 if (shadowCount == 1)
14619 {
14620 shadowPos[2] = shadowPos[1];
14622 shadowOrigin[2] = shadowOrigin[1];
14623 }
14624 else if (shadowCount == 2)
14625 {
14626 shadowPos[1] = shadowPos[0];
14628 shadowOrigin[1] = shadowOrigin[0];
14629 }
14630 else if (shadowCount >= 3)
14631 {
14632 shadowCount = 0;
14633 shadowPos[0] = position;
14634 shadowPos[0].Y += gfxOffY;
14637 }
14638 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
Vector2[] shadowOrigin
Definition Player.cs:2022
Vector2[] shadowPos
Definition Player.cs:2018
float gfxOffY
An offset from the actual position of the player that will be added to the draw position....
Definition Player.cs:1814
float[] shadowRotation
Definition Player.cs:2020
float fullRotation
Definition Player.cs:1801
int[] shadowDirection
Definition Player.cs:2024
Vector2 fullRotationOrigin
Definition Player.cs:1803

References Terraria.Entity.direction, Terraria.Player.fullRotation, Terraria.Player.fullRotationOrigin, Terraria.Player.gfxOffY, Terraria.Entity.position, Terraria.Player.shadowCount, Terraria.Player.shadowDirection, Terraria.Player.shadowOrigin, Terraria.Player.shadowPos, and Terraria.Player.shadowRotation.

Referenced by Terraria.Player.Spawn(), Terraria.Player.Teleport(), and Terraria.Player.Update().

+ Here is the caller graph for this function: