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

◆ ClearWall()

static void Terraria.WorldBuilding.WorldUtils.ClearWall ( int x,
int y,
bool frameNeighbors = false )
inlinestatic

Definition at line 49 of file WorldUtils.cs.

50 {
51 Main.tile[x, y].wall = 0;
52 if (frameNeighbors)
53 {
54 WorldGen.SquareWallFrame(x + 1, y);
55 WorldGen.SquareWallFrame(x - 1, y);
56 WorldGen.SquareWallFrame(x, y + 1);
57 WorldGen.SquareWallFrame(x, y - 1);
58 }
59 }

References Terraria.WorldGen.SquareWallFrame(), and Terraria.Main.tile.

Referenced by Terraria.WorldBuilding.Actions.ClearWall.Apply().