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

◆ SolidTileAllowTopSlope()

static bool Terraria.WorldGen.SolidTileAllowTopSlope ( int i,
int j )
inlinestatic

Definition at line 60762 of file WorldGen.cs.

60763 {
60764 try
60765 {
60766 Tile tile = Main.tile[i, j];
60767 if (tile == null)
60768 {
60769 return true;
60770 }
60771 if (tile.active() && (Main.tileSolid[tile.type] || tile.type == 380) && (!tile.bottomSlope() || (TileID.Sets.Platforms[tile.type] && tile.halfBrick())) && !tile.inActive())
60772 {
60773 return true;
60774 }
60775 }
60776 catch
60777 {
60778 }
60779 return false;
60780 }
static bool[] Platforms
Definition TileID.cs:163

References Terraria.Tile.active(), Terraria.Tile.bottomSlope(), Terraria.Tile.halfBrick(), Terraria.Tile.inActive(), Terraria.ID.TileID.Sets.Platforms, Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Tile.type.