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

◆ CountTileTypesInArea()

static void Terraria.WorldGen.CountTileTypesInArea ( int[] tileTypeCounts,
int startX,
int endX,
int startY,
int endY )
inlinestatic

Definition at line 2635 of file WorldGen.cs.

2636 {
2637 for (int i = startX; i <= endX; i++)
2638 {
2639 for (int j = startY; j <= endY; j++)
2640 {
2641 if (Main.tile[i, j].active())
2642 {
2643 tileTypeCounts[Main.tile[i, j].type]++;
2644 }
2645 }
2646 }
2647 }

References Terraria.Main.tile.

Referenced by Terraria.WorldGen.ScoreRoom().

+ Here is the caller graph for this function: