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

◆ GetPlayerForTile()

static Player Terraria.WorldGen.GetPlayerForTile ( int x,
int y )
inlinestaticprivate

Definition at line 58171 of file WorldGen.cs.

58172 {
58173 //IL_0009: Unknown result type (might be due to invalid IL or missing references)
58174 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
58175 return Main.player[Player.FindClosest(new Vector2((float)x, (float)y) * 16f, 16, 16)];
58176 }

References Terraria.Player.FindClosest(), and Terraria.Main.player.

+ Here is the call graph for this function: