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

◆ GetAshTreeFoliageData()

static bool Terraria.WorldGen.GetAshTreeFoliageData ( int i,
int j,
int xoffset,
ref int treeFrame,
ref int treeStyle,
out int floorY,
out int topTextureFrameWidth,
out int topTextureFrameHeight )
inlinestatic

Definition at line 53447 of file WorldGen.cs.

53448 {
53449 _ = Main.tile[i, j];
53450 int num = i + xoffset;
53453 floorY = j;
53454 for (int k = 0; k < 100; k++)
53455 {
53456 floorY = j + k;
53457 Tile tile = Main.tile[num, floorY];
53458 if (tile == null)
53459 {
53460 return false;
53461 }
53462 if (tile.type == 633)
53463 {
53464 treeStyle = 31;
53465 return true;
53466 }
53467 }
53468 return false;
53469 }

References Terraria.Main.tile, and Terraria.Tile.type.

Referenced by Terraria.GameContent.Drawing.TileDrawing.DrawTrees(), and Terraria.GameContent.Drawing.TileDrawing.MakeExtraPreparations().