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

◆ TeleporterHitboxIntersects()

static bool Terraria.Wiring.TeleporterHitboxIntersects ( Rectangle teleporter,
Rectangle entity )
inlinestaticprivate

Definition at line 2841 of file Wiring.cs.

2842 {
2844 if (rectangle.Width <= teleporter.Width + entity.Width)
2845 {
2846 return rectangle.Height <= teleporter.Height + entity.Height;
2847 }
2848 return false;
2849 }
static Rectangle Union(Rectangle value1, Rectangle value2)
Definition Rectangle.cs:197

References Microsoft.Xna.Framework.Rectangle.Height, Microsoft.Xna.Framework.Rectangle.Union(), and Microsoft.Xna.Framework.Rectangle.Width.