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

◆ FullTile()

bool Terraria.GameContent.Drawing.WallDrawing.FullTile ( int x,
int y )
inlineprotected

Definition at line 211 of file WallDrawing.cs.

212 {
213 if (_tileArray[x - 1, y] == null || _tileArray[x - 1, y].blockType() != 0 || _tileArray[x + 1, y] == null || _tileArray[x + 1, y].blockType() != 0)
214 {
215 return false;
216 }
217 Tile tile = _tileArray[x, y];
218 if (tile == null)
219 {
220 return false;
221 }
222 if (tile.active())
223 {
224 if (tile.type < TileID.Sets.DrawsWalls.Length && TileID.Sets.DrawsWalls[tile.type])
225 {
226 return false;
227 }
228 if (tile.invisibleBlock() && !_shouldShowInvisibleWalls)
229 {
230 return false;
231 }
232 if (Main.tileSolid[tile.type] && !Main.tileSolidTop[tile.type])
233 {
234 int frameX = tile.frameX;
235 int frameY = tile.frameY;
236 if (Main.tileLargeFrames[tile.type] > 0)
237 {
238 if (frameY == 18 || frameY == 108)
239 {
240 if (frameX >= 18 && frameX <= 54)
241 {
242 return true;
243 }
244 if (frameX >= 108 && frameX <= 144)
245 {
246 return true;
247 }
248 }
249 }
250 else if (frameY == 18)
251 {
252 if (frameX >= 18 && frameX <= 54)
253 {
254 return true;
255 }
256 if (frameX >= 108 && frameX <= 144)
257 {
258 return true;
259 }
260 }
261 else if (frameY >= 90 && frameY <= 196)
262 {
263 if (frameX <= 70)
264 {
265 return true;
266 }
267 if (frameX >= 144 && frameX <= 232)
268 {
269 return true;
270 }
271 }
272 }
273 }
274 return false;
275 }
static bool[] DrawsWalls
Definition TileID.cs:171
short frameX
Definition Tile.cs:22

References Terraria.GameContent.Drawing.WallDrawing._shouldShowInvisibleWalls, Terraria.GameContent.Drawing.WallDrawing._tileArray, Terraria.Tile.active(), Terraria.ID.TileID.Sets.DrawsWalls, Terraria.Tile.frameX, Terraria.Tile.frameY, Terraria.Tile.invisibleBlock(), Terraria.Main.tileLargeFrames, Terraria.Main.tileSolid, Terraria.Main.tileSolidTop, and Terraria.Tile.type.

Referenced by Terraria.GameContent.Drawing.WallDrawing.DrawWalls().