TModLoader
v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
◆
Scan3By3()
static
void
Terraria.WorldGen.Scan3By3
(
int
topLeftX
,
int
topLeftY
,
out
bool
isEmpty
,
out
bool
hasFloor
)
inline
static
private
Definition at line
17861
of file
WorldGen.cs
.
17862
{
17863
isEmpty
=
true
;
17864
hasFloor
=
false
;
17865
for
(
int
i = 0; i < 3; i++)
17866
{
17867
int
num
= 0;
17868
while
(
num
< 3)
17869
{
17870
int
i2
=
topLeftX
+ i;
17871
int
j
=
topLeftY
+
num
;
17872
if
(!
SolidTile
(
i2
,
j
))
17873
{
17874
num
++;
17875
continue
;
17876
}
17877
goto
IL_0028
;
17878
}
17879
continue
;
17880
IL_0028
:
17881
isEmpty
=
false
;
17882
break
;
17883
}
17884
for
(
int
k
= 0;
k
< 3;
k
++)
17885
{
17886
int
i3
=
topLeftX
+
k
;
17887
int
j2
=
topLeftY
+ 3;
17888
if
(
SolidTile
(
i3
,
j2
))
17889
{
17890
hasFloor
=
true
;
17891
break
;
17892
}
17893
}
17894
}
List
Terraria.Enums.AnchorType.SolidTile
@ SolidTile
References
Terraria.Enums.SolidTile
.
Terraria
WorldGen
Generated by
1.10.0