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

◆ CheckStopForSolids()

static bool Terraria.DelegateMethods.CheckStopForSolids ( int x,
int y )
inlinestatic

Definition at line 629 of file DelegateMethods.cs.

630 {
631 if (x < 0 || x >= Main.maxTilesX || y < 0 || y >= Main.maxTilesY)
632 {
633 return false;
634 }
635 if (Main.tile[x, y] == null)
636 {
637 return false;
638 }
639 if (Main.tile[x, y].active() && !Main.tile[x, y].inActive() && !Main.tileSolidTop[Main.tile[x, y].type] && Main.tileSolid[Main.tile[x, y].type])
640 {
641 CheckResultOut = true;
642 return false;
643 }
644 return true;
645 }

References Terraria.DelegateMethods.CheckResultOut, Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Main.tileSolidTop.

Referenced by Terraria.WorldGen.IsSafeFromRain().