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

◆ TeleporterHitboxIntersects()

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

Definition at line 3162 of file Wiring.cs.

3163 {
3164 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
3165 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
3166 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
3167 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
3168 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
3169 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
3170 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
3171 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
3172 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
3173 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
3174 Rectangle rectangle = Rectangle.Union(teleporter, entity);
3175 if (rectangle.Width <= teleporter.Width + entity.Width)
3176 {
3177 return rectangle.Height <= teleporter.Height + entity.Height;
3178 }
3179 return false;
3180 }