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

◆ InAPlaceWithWind() [1/2]

static bool Terraria.WorldGen.InAPlaceWithWind ( int x,
int y,
int width,
int height )
inlinestatic

Definition at line 80593 of file WorldGen.cs.

80594 {
80596 {
80597 return false;
80598 }
80599 for (int i = 0; i < width; i++)
80600 {
80601 for (int j = 0; j < height; j++)
80602 {
80603 Tile tile = Main.tile[x + i, y + j];
80604 if (tile == null)
80605 {
80606 return false;
80607 }
80608 if (tile.liquid > 0 || (tile.wall > 0 && !WallID.Sets.AllowsWind[tile.wall]))
80609 {
80610 return false;
80611 }
80612 }
80613 }
80614 return true;
80615 }
static bool[] AllowsWind
Definition WallID.cs:51
static bool DoesWindBlowAtThisHeight(int tileY)

References Terraria.ID.WallID.Sets.AllowsWind, Terraria.Tile.liquid, Terraria.Main.tile, and Terraria.Tile.wall.