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

◆ Scan3By3()

static void Terraria.WorldGen.Scan3By3 ( int topLeftX,
int topLeftY,
out bool isEmpty,
out bool hasFloor )
inlinestaticprivate

Definition at line 16818 of file WorldGen.cs.

16819 {
16820 isEmpty = true;
16821 hasFloor = false;
16822 for (int i = 0; i < 3; i++)
16823 {
16824 int num = 0;
16825 while (num < 3)
16826 {
16827 int i2 = topLeftX + i;
16828 int j = topLeftY + num;
16829 if (!SolidTile(i2, j))
16830 {
16831 num++;
16832 continue;
16833 }
16834 goto IL_001e;
16835 }
16836 continue;
16837 IL_001e:
16838 isEmpty = false;
16839 break;
16840 }
16841 for (int k = 0; k < 3; k++)
16842 {
16843 int i3 = topLeftX + k;
16844 int j2 = topLeftY + 3;
16845 if (SolidTile(i3, j2))
16846 {
16847 hasFloor = true;
16848 break;
16849 }
16850 }
16851 }

References Terraria.Enums.SolidTile.