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

◆ FullTile()

bool Terraria.Main.FullTile ( int x,
int y )
inlineprotected

Definition at line 54729 of file Main.cs.

54730 {
54731 if (Main.tile[x - 1, y] == null || Main.tile[x - 1, y].blockType() != 0 || Main.tile[x + 1, y] == null || Main.tile[x + 1, y].blockType() != 0)
54732 {
54733 return false;
54734 }
54735 Tile tile = Main.tile[x, y];
54736 if (tile == null)
54737 {
54738 return false;
54739 }
54740 if (tile.active())
54741 {
54742 if (tile.type < TileID.Sets.DrawsWalls.Length && TileID.Sets.DrawsWalls[tile.type])
54743 {
54744 return false;
54745 }
54746 if (tileSolid[tile.type] && !tileSolidTop[tile.type])
54747 {
54748 int frameX = tile.frameX;
54749 int frameY = tile.frameY;
54750 if (tileLargeFrames[tile.type] > 0)
54751 {
54752 if (frameY == 18 || frameY == 108)
54753 {
54754 if (frameX >= 18 && frameX <= 54)
54755 {
54756 return true;
54757 }
54758 if (frameX >= 108 && frameX <= 144)
54759 {
54760 return true;
54761 }
54762 }
54763 }
54764 else if (frameY == 18)
54765 {
54766 if (frameX >= 18 && frameX <= 54)
54767 {
54768 return true;
54769 }
54770 if (frameX >= 108 && frameX <= 144)
54771 {
54772 return true;
54773 }
54774 }
54775 else if (frameY >= 90 && frameY <= 196)
54776 {
54777 if (frameX <= 70)
54778 {
54779 return true;
54780 }
54781 if (frameX >= 144 && frameX <= 232)
54782 {
54783 return true;
54784 }
54785 }
54786 }
54787 }
54788 return false;
54789 }
static bool[] DrawsWalls
Definition TileID.cs:171
static bool[] tileSolidTop
Definition Main.cs:1469
static bool[] tileSolid
Definition Main.cs:1471
static Tile[,] tile
Definition Main.cs:1675
static byte[] tileLargeFrames
Definition Main.cs:1477

References Terraria.ID.TileID.Sets.DrawsWalls, Terraria.Main.tile, Terraria.Main.tileLargeFrames, Terraria.Main.tileSolid, and Terraria.Main.tileSolidTop.