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

◆ CopyPlayer()

void Terraria.DataStructures.EntityShadowInfo.CopyPlayer ( Player player)
inline

Definition at line 21 of file EntityShadowInfo.cs.

22 {
23 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
24 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
25 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
26 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
27 Position = player.position;
28 Rotation = player.fullRotation;
29 Origin = player.fullRotationOrigin;
30 Direction = player.direction;
31 GravityDirection = (int)player.gravDir;
32 BodyFrameIndex = player.bodyFrame.Y / player.bodyFrame.Height;
33 }

References Terraria.Player.bodyFrame, Terraria.DataStructures.EntityShadowInfo.BodyFrameIndex, Terraria.DataStructures.EntityShadowInfo.Direction, Terraria.Entity.direction, Terraria.Player.fullRotation, Terraria.Player.fullRotationOrigin, Terraria.Player.gravDir, Terraria.DataStructures.EntityShadowInfo.GravityDirection, Terraria.DataStructures.EntityShadowInfo.Origin, Terraria.DataStructures.EntityShadowInfo.Position, Terraria.Entity.position, and Terraria.DataStructures.EntityShadowInfo.Rotation.

Referenced by Terraria.Player.UpdateAdvancedShadows().

+ Here is the caller graph for this function: