Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
CountGrowingPlantTiles()
static int Terraria.WorldGen.CountGrowingPlantTiles
(
int
x
,
int
y
,
int
range
,
int
type
)
inline
static
private
Definition at line
49308
of file
WorldGen.cs
.
49309
{
49310
int
num = 0;
49311
for
(
int
i = x -
range
;
i
<= x +
range
;
i
++)
49312
{
49313
for
(
int
j
= y -
range
* 3;
j
<= y +
range
* 3;
j
++)
49314
{
49315
if
(Main.tile[i,
j
].active() && Main.tile[i,
j
].type ==
type
)
49316
{
49317
num++;
49318
}
49319
}
49320
}
49321
return
num;
49322
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.ExceptionArgument.type
@ type
References
Terraria.Main.tile
, and
System.type
.
Terraria
WorldGen
Generated by
1.10.0