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

◆ RefreshStrip()

static void Terraria.WorldGen.RefreshStrip ( int xStart,
int yStart,
int xEnd,
int yEnd,
ref int totalEcho,
ref int totalFramed )
inlinestatic

Definition at line 73975 of file WorldGen.cs.

73976 {
73977 int num = xStart - 1;
73978 int num2 = yStart - 1;
73979 int num3 = xEnd - xStart;
73980 int num4 = yEnd - yStart;
73981 if (num4 > 50 || num3 > 200)
73982 {
73983 throw new IndexOutOfRangeException();
73984 }
73985 int num5 = 0;
73987 for (int i = 1; i <= num3; i++)
73988 {
73989 Bits64 value = default(Bits64);
73990 for (int j = 1; j <= num4; j++)
73991 {
73992 Tile tile = Main.tile[num + i, num2 + j];
73993 if (tile != null && (tile.invisibleBlock() || tile.invisibleWall()))
73994 {
73995 num5++;
73996 value[j] = true;
73997 }
73998 }
73999 vertical64BitStrips[i] = value;
74000 }
74001 if (num5 == 0)
74002 {
74003 return;
74004 }
74005 vertical64BitStrips.Expand3x3();
74006 for (int k = 0; k < num3 + 2; k++)
74007 {
74009 if (bits.IsEmpty)
74010 {
74011 continue;
74012 }
74013 for (int l = 0; l < num4 + 2; l++)
74014 {
74015 if (bits[l])
74016 {
74017 totalFramed++;
74018 Reframe(num + k, num2 + l);
74019 }
74020 }
74021 }
74022 vertical64BitStrips.Clear();
74023 totalEcho += num5;
74024 }
static readonly Vertical64BitStrips bitStrip
Definition WorldGen.cs:1446
static void Reframe(int x, int y, bool resetFrame=false)

References Terraria.Tile.invisibleBlock(), Terraria.Tile.invisibleWall(), and Terraria.Main.tile.

+ Here is the call graph for this function: