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

◆ DeactivateIfOutsideOfWorld()

bool Terraria.Gore.DeactivateIfOutsideOfWorld ( )
inlineprivate

Definition at line 296 of file Gore.cs.

297 {
298 Point point = position.ToTileCoordinates();
299 if (!WorldGen.InWorld(point.X, point.Y))
300 {
301 active = false;
302 return true;
303 }
304 if (Main.tile[point.X, point.Y] == null)
305 {
306 active = false;
307 return true;
308 }
309 return false;
310 }
Vector2 position
Definition Gore.cs:17
bool active
Definition Gore.cs:31

References Terraria.Gore.active, Terraria.WorldGen.InWorld(), Terraria.Gore.position, Terraria.Main.tile, Microsoft.Xna.Framework.Point.X, and Microsoft.Xna.Framework.Point.Y.

Referenced by Terraria.Gore.Update().