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

◆ IsPlayerNearAPylon()

static bool Terraria.GameContent.TeleportPylonsSystem.IsPlayerNearAPylon ( Player player)
inlinestatic

Definition at line 262 of file TeleportPylonsSystem.cs.

263 {
264 return TileID.Sets.CountsAsPylon.Any((int id) => player.IsTileTypeInInteractionRange(id, TileReachCheckSettings.Pylons));
265 }
static int[] CountsAsPylon
What tiles count as Pylons, which allow the player to teleport to any other valid Pylons on the map.
Definition TileID.cs:471

References Terraria.ID.TileID.Sets.CountsAsPylon, Terraria.Player.IsTileTypeInInteractionRange(), and Terraria.DataStructures.TileReachCheckSettings.Pylons.

Referenced by Terraria.Map.TeleportPylonsMapLayer.Draw(), and Terraria.GameContent.TeleportPylonsSystem.HandleTeleportRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: