Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ InAPlaceWithWind() [1/2]

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

Definition at line 76919 of file WorldGen.cs.

76920 {
76922 {
76923 return false;
76924 }
76925 for (int i = 0; i < width; i++)
76926 {
76927 for (int j = 0; j < height; j++)
76928 {
76929 Tile tile = Main.tile[x + i, y + j];
76930 if (tile == null)
76931 {
76932 return false;
76933 }
76934 if (tile.liquid > 0 || (tile.wall > 0 && !WallID.Sets.AllowsWind[tile.wall]))
76935 {
76936 return false;
76937 }
76938 }
76939 }
76940 return true;
76941 }
static bool[] AllowsWind
Definition WallID.cs:48
static bool DoesWindBlowAtThisHeight(int tileY)

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