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

◆ Apply()

override bool Terraria.WorldBuilding.Actions.PlaceWall.Apply ( Point origin,
int x,
int y,
params object[] args )
inline

Definition at line 382 of file Actions.cs.

383 {
384 GenBase._tiles[x, y].wall = _type;
385 WorldGen.SquareWallFrame(x, y);
386 if (_neighbors)
387 {
388 WorldGen.SquareWallFrame(x + 1, y);
389 WorldGen.SquareWallFrame(x - 1, y);
390 WorldGen.SquareWallFrame(x, y - 1);
391 WorldGen.SquareWallFrame(x, y + 1);
392 }
393 return UnitApply(origin, x, y, args);
394 }
bool UnitApply(Point origin, int x, int y, params object[] args)
Definition GenAction.cs:15

References Terraria.WorldBuilding.Actions.PlaceWall._neighbors, Terraria.WorldBuilding.GenBase._tiles, Terraria.WorldBuilding.Actions.PlaceWall._type, Terraria.WorldGen.SquareWallFrame(), and Terraria.WorldBuilding.GenAction.UnitApply().