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

◆ IsWithinSnappngRangeToTile()

bool Terraria.Player.IsWithinSnappngRangeToTile ( int x,
int y,
int distanceInPixels )
inline

Definition at line 15713 of file Player.cs.

15714 {
15715 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
15716 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
15717 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
15718 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
15719 //IL_0034: Unknown result type (might be due to invalid IL or missing references)
15720 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
15721 Vector2 val = new Vector2((float)(x * 16 + 8), (float)(y * 16 + 8)) - new Vector2(base.Center.X, base.Bottom.Y - 16f);
15722 if (((Vector2)(ref val)).Length() <= (float)distanceInPixels)
15723 {
15724 return true;
15725 }
15726 return false;
15727 }

Referenced by Terraria.Player.TileInteractionsMouseOver(), and Terraria.Player.TileInteractionsUse().

+ Here is the caller graph for this function: