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

◆ PlaceXmasTree_Direct()

static int Terraria.WorldGen.PlaceXmasTree_Direct ( int x,
int y,
int type,
int style,
int dir,
int alternate )
inlinestatic

Definition at line 35711 of file WorldGen.cs.

35712 {
35713 for (short num = 0; num < 4; num++)
35714 {
35715 for (short num2 = 0; num2 < 8; num2++)
35716 {
35717 Tile tile = Main.tile[x + num, y + num2];
35718 tile.active(active: true);
35719 tile.type = (ushort)type;
35720 if (num == 0 && num2 == 0)
35721 {
35722 tile.frameX = 10;
35723 tile.frameY = 0;
35724 }
35725 else
35726 {
35727 tile.frameX = num;
35728 tile.frameY = num2;
35729 }
35730 }
35731 }
35732 return 0;
35733 }

References Terraria.Tile.active(), and Terraria.Main.tile.

Referenced by Terraria.ObjectData.TileObjectData.Initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: